mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-06 03:18:13 +00:00
Don't quit testffmpeg when alt-tabbing away
This commit is contained in:
@@ -1144,7 +1144,8 @@ int main(int argc, char *argv[])
|
||||
|
||||
/* Check for events */
|
||||
while (SDL_PollEvent(&event)) {
|
||||
if (event.type == SDL_EVENT_QUIT || event.type == SDL_EVENT_KEY_DOWN) {
|
||||
if (event.type == SDL_EVENT_QUIT ||
|
||||
(event.type == SDL_EVENT_KEY_DOWN && event.key.keysym.sym == SDLK_ESCAPE)) {
|
||||
done = 1;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user