Check the right flag value for fullscreen in SDL2

This commit is contained in:
Michael Martin
2019-08-21 01:09:49 -07:00
parent 28000b95c2
commit 93e6253caf
+2 -2
View File
@@ -107,7 +107,7 @@ TFB_Pure_ConfigureVideo (int driver, int flags, int width, int height, int toggl
char caption[200]; char caption[200];
int flags2 = 0; int flags2 = 0;
if (flags & SDL_WINDOW_FULLSCREEN) if (flags & TFB_GFXFLAGS_FULLSCREEN)
{ {
flags2 = SDL_WINDOW_FULLSCREEN_DESKTOP; flags2 = SDL_WINDOW_FULLSCREEN_DESKTOP;
} }
@@ -160,7 +160,7 @@ TFB_Pure_ConfigureVideo (int driver, int flags, int width, int height, int toggl
} }
else else
{ {
if (flags & SDL_WINDOW_FULLSCREEN) if (flags & TFB_GFXFLAGS_FULLSCREEN)
{ {
SDL_SetWindowFullscreen (window, SDL_WINDOW_FULLSCREEN_DESKTOP); SDL_SetWindowFullscreen (window, SDL_WINDOW_FULLSCREEN_DESKTOP);
} }