SDL: Add SDL_QUIT for GB runloop
Jeffrey Pfau jeffrey@endrift.com
Thu, 21 Jan 2016 19:27:42 -0800
1 files changed,
3 insertions(+),
0 deletions(-)
jump to
M
src/platform/sdl/gl-sdl.c
→
src/platform/sdl/gl-sdl.c
@@ -136,6 +136,9 @@ activeKeys &= ~(1 << key);
} } } + if (event.type == SDL_QUIT) { + return; + } #if SDL_VERSION_ATLEAST(2, 0, 0) // Event handling can change the size of the screen