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