all repos — mgba @ ef59199d649b1a16699da8552c810042d22a1d9a

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

ef59199d649b1a16699da8552c810042d22a1d9a

parent

60c81c505123bd86b73c35db0250915736915430

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

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

@@ -23,9 +23,9 @@

bool mSDLSWInit(struct mSDLRenderer* renderer) { #if !SDL_VERSION_ATLEAST(2, 0, 0) #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 #endif