Skip to content

Commit

Permalink
Code formatting and linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaweees committed Oct 19, 2024
1 parent cfe229a commit b3b7fcc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.5)
cmake_minimum_required(VERSION 3.8 FATAL_ERROR) # Set the minimum required version of CMake
project(graphics LANGUAGES CXX)
set(CMAKE_CXX_STANDARD 14) # Use C++14 standard for more features
# set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Wpedantic -Werror") # Set the compiler flags to include all warnings and treat them as errors
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ A three-dimensional graphics library from scratch written in C++13 and accelerat

### Built With

[![Neovim][C++-shield]][C++-url]
[![C++][C++-shield]][C++-url]
[![CUDA][CUDA-shield]][CUDA-url]
[![Apple][Apple-shield]][Apple-url]
[![GitHub Actions][github-actions-shield]][github-actions-url]
Expand Down
3 changes: 2 additions & 1 deletion src/display.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,8 @@ Display::~Display() {

void Display::update() {
#ifndef BENCHMARK_MODE
while (!SDL_TICKS_PASSED(SDL_GetTicks(), prevTime + FRAME_TIME));
while (!SDL_TICKS_PASSED(SDL_GetTicks(), prevTime + FRAME_TIME))
;
prevTime = SDL_GetTicks();
#endif

Expand Down

0 comments on commit b3b7fcc

Please sign in to comment.