mirror of https://github.com/xemu-project/xemu.git
ui: Add fullscreen exclusive mode
This commit is contained in:
parent
fd1fcc32c2
commit
6b0c66c6a1
|
@ -108,6 +108,7 @@ display:
|
|||
default: 1
|
||||
window:
|
||||
fullscreen_on_startup: bool
|
||||
fullscreen_exclusive: bool
|
||||
startup_size:
|
||||
type: enum
|
||||
values: [last_used, 640x480, 1280x720, 1280x800, 1280x960, 1920x1080, 2560x1440, 2560x1600, 2560x1920, 3840x2160]
|
||||
|
|
|
@ -380,7 +380,9 @@ static void set_full_screen(struct sdl2_console *scon, bool set)
|
|||
|
||||
if (gui_fullscreen) {
|
||||
SDL_SetWindowFullscreen(scon->real_window,
|
||||
SDL_WINDOW_FULLSCREEN_DESKTOP);
|
||||
(g_config.display.window.fullscreen_exclusive ?
|
||||
SDL_WINDOW_FULLSCREEN :
|
||||
SDL_WINDOW_FULLSCREEN_DESKTOP));
|
||||
gui_saved_grab = gui_grab;
|
||||
sdl_grab_start(scon);
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue