diff options
| author | fschildt <florian.schildt@protonmail.com> | 2025-10-09 16:13:28 +0200 |
|---|---|---|
| committer | fschildt <florian.schildt@protonmail.com> | 2025-10-09 16:13:28 +0200 |
| commit | 6f3590341312b0ffff2304d02b24ac6a5d14b182 (patch) | |
| tree | 40a6f66ea548377f0114af29cc17a8692e83a141 /src/main.cpp | |
| parent | 606d028dac5118329e7561af33b15988db84465f (diff) | |
tetris: optimize next tetromino, fix first count
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/main.cpp b/src/main.cpp index 7660628..8129c68 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -17,7 +17,8 @@ #include <assert.h> -Game::GameType DrawGameMenu() +Game::GameType +DrawGameMenu() { Game::GameType type = Game::no_game; @@ -79,7 +80,7 @@ CreateWindow() SDL_GL_SetAttribute(SDL_GL_STENCIL_SIZE, 8); - SDL_Window *window = SDL_CreateWindow("fsarcade", 1024, 768, SDL_WINDOW_OPENGL | SDL_WINDOW_RESIZABLE | SDL_WINDOW_HIDDEN | SDL_WINDOW_HIGH_PIXEL_DENSITY); + SDL_Window* window = SDL_CreateWindow("fsarcade", 1024, 768, SDL_WINDOW_OPENGL | SDL_WINDOW_RESIZABLE | SDL_WINDOW_HIDDEN | SDL_WINDOW_HIGH_PIXEL_DENSITY); if (!window) { std::cerr << "Failed to create SDL_window: " << SDL_GetError() << '\n'; return nullptr; @@ -126,7 +127,7 @@ CreateWindow() int -main(int argc, char **argv) +main(int argc, char** argv) { SDL_Window* window = CreateWindow(); if (!window) { |
