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);