all repos — mgba @ b55fac0a8a09ec34b9ac273eeba182537db6cfe6

mGBA Game Boy Advance Emulator

SDL: Support fullscreen mode when using the SDL1 software renderer
Cameron Cawley ccawley2011@gmail.com
Fri, 30 Nov 2018 18:45:08 +0000
commit

b55fac0a8a09ec34b9ac273eeba182537db6cfe6

parent

11559cb2a9e9fc044954559140f301296af06bb8

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

jump to
M src/platform/sdl/sw-sdl1.csrc/platform/sdl/sw-sdl1.c

@@ -22,9 +22,9 @@ }

bool mSDLSWInit(struct mSDLRenderer* renderer) { #ifdef COLOR_16_BIT - SDL_SetVideoMode(renderer->viewportWidth, renderer->viewportHeight, 16, SDL_DOUBLEBUF | SDL_HWSURFACE); + SDL_SetVideoMode(renderer->viewportWidth, renderer->viewportHeight, 16, SDL_DOUBLEBUF | SDL_HWSURFACE | (SDL_FULLSCREEN * renderer->fullscreen)); #else - SDL_SetVideoMode(renderer->viewportWidth, renderer->viewportHeight, 32, SDL_DOUBLEBUF | SDL_HWSURFACE); + SDL_SetVideoMode(renderer->viewportWidth, renderer->viewportHeight, 32, SDL_DOUBLEBUF | SDL_HWSURFACE | (SDL_FULLSCREEN * renderer->fullscreen)); #endif SDL_WM_SetCaption(projectName, "");