all repos — mgba @ b8ecabbaa9657fc496277379fad017a09b79f952

mGBA Game Boy Advance Emulator

Fix the build
Jeffrey Pfau jeffrey@endrift.com
Thu, 03 Apr 2014 00:00:06 -0700
commit

b8ecabbaa9657fc496277379fad017a09b79f952

parent

ecb1939ff1ecbb190a28a9eb3544c2a58d210305

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

jump to
M src/debugger/gdb-stub.csrc/debugger/gdb-stub.c

@@ -1,6 +1,7 @@

#include "gdb-stub.h" #include <errno.h> +#include <signal.h> enum GDBError { GDB_NO_ERROR = 0x00,
M src/platform/sdl/gl-main.csrc/platform/sdl/gl-main.c

@@ -191,13 +191,17 @@ SDL_GL_SwapBuffers();

#endif while (SDL_PollEvent(&event)) { +#if SDL_VERSION_ATLEAST(2, 0, 0) int fullscreen = renderer->events.fullscreen; +#endif GBASDLHandleEvent(context, &renderer->events, &event); +#if SDL_VERSION_ATLEAST(2, 0, 0) // Event handling can change the size of the screen if (renderer->events.fullscreen != fullscreen) { SDL_GetWindowSize(renderer->window, &renderer->viewportWidth, &renderer->viewportHeight); glViewport(0, 0, renderer->viewportWidth, renderer->viewportHeight); } +#endif } } }