Corrected p7screen.
This commit is contained in:
parent
b0e19a42bc
commit
230c38727c
|
@ -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);
|
||||
}
|
||||
|
|
Reference in New Issue