all repos — mgba @ 52adcb68dbd7573aac446d63d1d46cb69034a36c

mGBA Game Boy Advance Emulator

SDL: Add SDL_QUIT for GB runloop
Jeffrey Pfau jeffrey@endrift.com
Thu, 21 Jan 2016 19:27:42 -0800
commit

52adcb68dbd7573aac446d63d1d46cb69034a36c

parent

c59bfd173d3c197916fe267a734120a40ec0787f

1 files changed, 3 insertions(+), 0 deletions(-)

jump to
M src/platform/sdl/gl-sdl.csrc/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