mirror of
https://github.com/fabiangreffrath/woof.git
synced 2025-09-22 11:22:18 -04:00
Help fullscreen optimizations work better (#1761)
This commit is contained in:
parent
7b2c0d8bec
commit
49979ae78a
@ -397,6 +397,7 @@ static void I_ToggleFullScreen(void)
|
||||
{
|
||||
flags |= SDL_WINDOW_FULLSCREEN_DESKTOP;
|
||||
SDL_SetWindowGrab(screen, SDL_TRUE);
|
||||
SDL_SetWindowResizable(screen, SDL_FALSE);
|
||||
}
|
||||
|
||||
SDL_SetWindowFullscreen(screen, flags);
|
||||
@ -408,6 +409,7 @@ static void I_ToggleFullScreen(void)
|
||||
{
|
||||
SDL_SetWindowGrab(screen, SDL_FALSE);
|
||||
AdjustWindowSize();
|
||||
SDL_SetWindowResizable(screen, SDL_TRUE);
|
||||
SDL_SetWindowSize(screen, window_width, window_height);
|
||||
}
|
||||
}
|
||||
@ -1581,7 +1583,6 @@ static void I_InitGraphicsMode(void)
|
||||
uint32_t flags = 0;
|
||||
|
||||
// [FG] window flags
|
||||
flags |= SDL_WINDOW_RESIZABLE;
|
||||
flags |= SDL_WINDOW_ALLOW_HIGHDPI;
|
||||
|
||||
w = window_width;
|
||||
@ -1639,6 +1640,10 @@ static void I_InitGraphicsMode(void)
|
||||
{
|
||||
SDL_SetWindowGrab(screen, SDL_TRUE);
|
||||
}
|
||||
else
|
||||
{
|
||||
SDL_SetWindowResizable(screen, SDL_TRUE);
|
||||
}
|
||||
|
||||
flags = 0;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user