From ad7f1ae9395fc3d4cd7c28c381ca89d416426246 Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Mon, 6 Oct 2014 23:38:48 -0700 Subject: [PATCH] Fix build when PNG support is not enabled --- src/platform/sdl/sdl-events.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/platform/sdl/sdl-events.c b/src/platform/sdl/sdl-events.c index 346e98a37..e5d28a25c 100644 --- a/src/platform/sdl/sdl-events.c +++ b/src/platform/sdl/sdl-events.c @@ -77,6 +77,7 @@ static void _GBASDLHandleKeypress(struct GBAThread* context, struct GBASDLEvents ARMDebuggerEnter(context->debugger, DEBUGGER_ENTER_MANUAL); } return; +#ifdef USE_PNG case SDLK_F12: if (event->type == SDL_KEYDOWN) { GBAThreadInterrupt(context); @@ -84,6 +85,7 @@ static void _GBASDLHandleKeypress(struct GBAThread* context, struct GBASDLEvents GBAThreadContinue(context); } return; +#endif case SDLK_TAB: context->sync.audioWait = event->type != SDL_KEYDOWN; return;