Set window position when switching to windowed mode

This commit is contained in:
kanjitalk755 2023-08-23 10:58:23 +09:00
parent 81bdda2a5b
commit 1d8e348e4b
1 changed files with 1 additions and 0 deletions

View File

@ -1669,6 +1669,7 @@ static void do_toggle_fullscreen(void)
int m = get_mag_rate();
SDL_SetWindowSize(sdl_window, m * VIDEO_MODE_X, m * VIDEO_MODE_Y);
SDL_SetWindowGrab(sdl_window, SDL_FALSE);
SDL_SetWindowPosition(sdl_window, 0, 26);
} else {
display_type = DISPLAY_SCREEN;
SDL_SetWindowFullscreen(sdl_window, SDL_WINDOW_FULLSCREEN_DESKTOP);