all repos — mgba @ e9c441281988d973b8e9fc7956e983249f7c8acd

mGBA Game Boy Advance Emulator

Put missing returns in SDL event handling
Jeffrey Pfau jeffrey@endrift.com
Mon, 10 Feb 2014 23:13:39 -0800
commit

e9c441281988d973b8e9fc7956e983249f7c8acd

parent

eb5580f719aac6d7f08186bf2a079c446e05c92f

1 files changed, 2 insertions(+), 1 deletions(-)

jump to
M src/platform/sdl/sdl-events.csrc/platform/sdl/sdl-events.c

@@ -91,7 +91,7 @@ case SDLK_F11:

if (event->type == SDL_KEYDOWN && context->debugger) { ARMDebuggerEnter(context->debugger, DEBUGGER_ENTER_MANUAL); } - break; + return; case SDLK_TAB: context->sync.audioWait = event->type != SDL_KEYDOWN; return;

@@ -103,6 +103,7 @@ GBARewind(context, 10);

if (!isPaused) { GBAThreadUnpause(context); } + return; default: if (event->type == SDL_KEYDOWN) { if (event->keysym.mod & GUI_MOD) {