Fix window position

This commit is contained in:
kanjitalk755 2023-08-23 20:23:08 +09:00
parent 1d8e348e4b
commit d2c2647e3a

View File

@ -1669,7 +1669,9 @@ 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);
#ifndef __MACOSX__
SDL_SetWindowPosition(sdl_window, SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED);
#endif
} else {
display_type = DISPLAY_SCREEN;
SDL_SetWindowFullscreen(sdl_window, SDL_WINDOW_FULLSCREEN_DESKTOP);