- [FIX] No comprobava correctament la pulsació de Escape
- [FIX] linea de compilació de Windows sense el SDLmain eixe
This commit is contained in:
2
main.cpp
2
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);
|
||||
|
||||
Reference in New Issue
Block a user