From c862ba56e7776bc177ac9a4a317158473d33ba6c Mon Sep 17 00:00:00 2001 From: Raimon Zamora Date: Tue, 10 Jun 2025 13:01:01 +0200 Subject: [PATCH] =?UTF-8?q?-=20[FIX]=20No=20comprobava=20correctament=20la?= =?UTF-8?q?=20pulsaci=C3=B3=20de=20Escape=20-=20[FIX]=20linea=20de=20compi?= =?UTF-8?q?laci=C3=B3=20de=20Windows=20sense=20el=20SDLmain=20eixe?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Makefile | 2 +- main.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 1a406f7..2e5751d 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ windows: - g++ *.cpp -lmingw32 -lSDL3main -lSDL3 -lopengl32 -mwindows -o shaders + g++ *.cpp -lmingw32 -lSDL3 -lopengl32 -mwindows -o shaders linux: g++ -g *.cpp -lSDL3 -lGL -o shaders diff --git a/main.cpp b/main.cpp index 590f294..8b774bc 100644 --- a/main.cpp +++ b/main.cpp @@ -39,7 +39,7 @@ int main(int argc, char **argv) { SDL_Event e; while ( SDL_PollEvent(&e) ) { - if ( e.type == SDL_EVENT_QUIT || ( e.type == SDL_EVENT_KEY_DOWN && e.key.scancode == SDLK_ESCAPE ) ) { should_exit = true; } + if ( e.type == SDL_EVENT_QUIT || ( e.type == SDL_EVENT_KEY_DOWN && e.key.scancode == SDL_SCANCODE_ESCAPE ) ) { should_exit = true; } } SDL_SetRenderTarget(renderer, texTarget);