mirror of
https://github.com/libretro/mgba.git
synced 2024-11-29 03:00:31 +00:00
Fix the build
This commit is contained in:
parent
ecb1939ff1
commit
b8ecabbaa9
@ -1,6 +1,7 @@
|
||||
#include "gdb-stub.h"
|
||||
|
||||
#include <errno.h>
|
||||
#include <signal.h>
|
||||
|
||||
enum GDBError {
|
||||
GDB_NO_ERROR = 0x00,
|
||||
|
@ -191,13 +191,17 @@ static void _GBASDLRunloop(struct GBAThread* context, struct GLSoftwareRenderer*
|
||||
#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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user