mirror of
https://github.com/kanjitalk755/macemu.git
synced 2024-12-27 16:31:08 +00:00
Set window position when switching to windowed mode
This commit is contained in:
parent
81bdda2a5b
commit
1d8e348e4b
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user