all repos — mgba @ ad7f1ae9395fc3d4cd7c28c381ca89d416426246

mGBA Game Boy Advance Emulator

Fix build when PNG support is not enabled
Jeffrey Pfau jeffrey@endrift.com
Mon, 06 Oct 2014 23:38:48 -0700
commit

ad7f1ae9395fc3d4cd7c28c381ca89d416426246

parent

e9864cbc99cb909c290f6acadf4ed39b6009f9d0

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

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

@@ -77,6 +77,7 @@ if (event->type == SDL_KEYDOWN && context->debugger) {

ARMDebuggerEnter(context->debugger, DEBUGGER_ENTER_MANUAL); } return; +#ifdef USE_PNG case SDLK_F12: if (event->type == SDL_KEYDOWN) { GBAThreadInterrupt(context);

@@ -84,6 +85,7 @@ GBAThreadTakeScreenshot(context);

GBAThreadContinue(context); } return; +#endif case SDLK_TAB: context->sync.audioWait = event->type != SDL_KEYDOWN; return;