mirror of
https://github.com/Ryujinx/SDL.git
synced 2024-12-24 16:55:33 +00:00
Fixed handling only one event per frame in test program.
This commit is contained in:
parent
fcee3e734d
commit
1ed86d2211
|
@ -59,7 +59,7 @@ void
|
|||
loop()
|
||||
{
|
||||
SDL_Event e;
|
||||
if (SDL_PollEvent(&e)) {
|
||||
while (SDL_PollEvent(&e)) {
|
||||
if (e.type == SDL_QUIT) {
|
||||
done = 1;
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue