mirror of
https://github.com/kanjitalk755/macemu.git
synced 2024-12-28 07:29:57 +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();
|
int m = get_mag_rate();
|
||||||
SDL_SetWindowSize(sdl_window, m * VIDEO_MODE_X, m * VIDEO_MODE_Y);
|
SDL_SetWindowSize(sdl_window, m * VIDEO_MODE_X, m * VIDEO_MODE_Y);
|
||||||
SDL_SetWindowGrab(sdl_window, SDL_FALSE);
|
SDL_SetWindowGrab(sdl_window, SDL_FALSE);
|
||||||
|
SDL_SetWindowPosition(sdl_window, 0, 26);
|
||||||
} else {
|
} else {
|
||||||
display_type = DISPLAY_SCREEN;
|
display_type = DISPLAY_SCREEN;
|
||||||
SDL_SetWindowFullscreen(sdl_window, SDL_WINDOW_FULLSCREEN_DESKTOP);
|
SDL_SetWindowFullscreen(sdl_window, SDL_WINDOW_FULLSCREEN_DESKTOP);
|
||||||
|
Loading…
Reference in New Issue
Block a user