mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-11-22 12:05:11 +00:00
stop trapping cursor in window leaving fullscreen (#353)
This commit is contained in:
parent
e44a3c775d
commit
1e8dfa66fd
1 changed files with 4 additions and 1 deletions
|
@ -72,13 +72,16 @@ static void gfx_sdl_set_fullscreen(void) {
|
||||||
SDL_SetWindowFullscreen(wnd, SDL_WINDOW_FULLSCREEN_DESKTOP);
|
SDL_SetWindowFullscreen(wnd, SDL_WINDOW_FULLSCREEN_DESKTOP);
|
||||||
} else {
|
} else {
|
||||||
SDL_SetWindowFullscreen(wnd, 0);
|
SDL_SetWindowFullscreen(wnd, 0);
|
||||||
|
SDL_ShowCursor(1);
|
||||||
configWindow.exiting_fullscreen = true;
|
configWindow.exiting_fullscreen = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void gfx_sdl_reset_dimension_and_pos(void) {
|
static void gfx_sdl_reset_dimension_and_pos(void) {
|
||||||
if (configWindow.exiting_fullscreen)
|
if (configWindow.exiting_fullscreen) {
|
||||||
configWindow.exiting_fullscreen = false;
|
configWindow.exiting_fullscreen = false;
|
||||||
|
SDL_ShowCursor(0);
|
||||||
|
}
|
||||||
|
|
||||||
if (configWindow.reset) {
|
if (configWindow.reset) {
|
||||||
configWindow.x = WAPI_WIN_CENTERPOS;
|
configWindow.x = WAPI_WIN_CENTERPOS;
|
||||||
|
|
Loading…
Reference in a new issue