SDL: Support fullscreen mode when using the SDL1 software renderer
Cameron Cawley ccawley2011@gmail.com
Fri, 30 Nov 2018 18:45:08 +0000
1 files changed,
2 insertions(+),
2 deletions(-)
jump to
M
src/platform/sdl/sw-sdl1.c
→
src/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, "");