Cleanup
This commit is contained in:
parent
9a50917062
commit
193f0bdc49
|
@ -185,16 +185,15 @@ void SceneFinish() {
|
||||||
SDL_RenderPresent(RENDERER);
|
SDL_RenderPresent(RENDERER);
|
||||||
|
|
||||||
/* Only sensible place to hook the quit signal */
|
/* Only sensible place to hook the quit signal */
|
||||||
|
SDL_Event e;
|
||||||
SDL_Event e = {0};
|
while (SDL_PollEvent(&e)) {
|
||||||
|
switch (e.type) {
|
||||||
while (SDL_PollEvent(&e))
|
case SDL_QUIT:
|
||||||
switch (e.type) {
|
exit(0);
|
||||||
case SDL_QUIT:
|
break;
|
||||||
exit(0);
|
default:
|
||||||
break;
|
break;
|
||||||
default:
|
}
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user