From 6f3590341312b0ffff2304d02b24ac6a5d14b182 Mon Sep 17 00:00:00 2001 From: fschildt Date: Thu, 9 Oct 2025 16:13:28 +0200 Subject: tetris: optimize next tetromino, fix first count --- src/main.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/main.cpp') 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 -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) { -- cgit v1.2.3