cake
/
p7utils
Archived
1
0
Fork 0

Corrected p7screen.

This commit is contained in:
Thomas Touhey 2017-03-25 19:26:33 +01:00
parent b0e19a42bc
commit 230c38727c
1 changed files with 0 additions and 7 deletions

View File

@ -105,13 +105,6 @@ static int display_callback(int w, int h, uint32_t **pixels)
/* update screen */
SDL_Flip(screen);
/* check if user has pressed escape or cross */
SDL_Event event;
SDL_PollEvent(&event);
if ((event.type == SDL_KEYDOWN && event.key.keysym.sym == SDLK_ESCAPE)
|| event.type == SDL_QUIT)
return (0);
/* continue! */
return (1);
}