Disabled video minimize on focus loss
This commit is contained in:
parent
d58d05df8a
commit
c9a4e88420
1 changed files with 4 additions and 1 deletions
|
@ -404,7 +404,10 @@ int graphics_setup(void)
|
|||
}
|
||||
|
||||
if (SDL_SetHint(SDL_HINT_GRAB_KEYBOARD, "1") != SDL_TRUE)
|
||||
write_log("SDL could not grab the keyboard");
|
||||
write_log("SDL2: could not grab the keyboard!\n");
|
||||
|
||||
if (SDL_SetHint(SDL_HINT_VIDEO_MINIMIZE_ON_FOCUS_LOSS, "0") == SDL_TRUE)
|
||||
write_log("SDL2: Set window not to minimize on focus loss\n");
|
||||
|
||||
currprefs.gfx_apmode[1].gfx_refreshrate = host_hz;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue