mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-24 16:39:43 +00:00
Video fullscreen toggle - mutation of g_settings now done through
settings_set
This commit is contained in:
parent
1fc1014448
commit
a565f792a4
@ -657,6 +657,7 @@ enum
|
||||
S_INPUT_OVERLAY_SCALE_DECREMENT,
|
||||
S_INPUT_OVERLAY_SCALE_INCREMENT,
|
||||
S_VIDEO_VSYNC_TOGGLE,
|
||||
S_VIDEO_FULLSCREEN_TOGGLE,
|
||||
S_REWIND_GRANULARITY_DECREMENT,
|
||||
S_REWIND_GRANULARITY_INCREMENT,
|
||||
S_DEF_REWIND_GRANULARITY,
|
||||
|
@ -2006,7 +2006,7 @@ static bool check_fullscreen(void)
|
||||
bool toggle = pressed && !was_pressed;
|
||||
if (toggle)
|
||||
{
|
||||
g_settings.video.fullscreen = !g_settings.video.fullscreen;
|
||||
settings_set(1ULL << S_VIDEO_FULLSCREEN_TOGGLE);
|
||||
rarch_set_fullscreen(g_settings.video.fullscreen);
|
||||
}
|
||||
|
||||
|
@ -1187,6 +1187,9 @@ void settings_set(uint64_t settings)
|
||||
if (settings & (1ULL << S_VIDEO_VSYNC_TOGGLE))
|
||||
g_settings.video.vsync = !g_settings.video.vsync;
|
||||
|
||||
if (settings & (1ULL << S_VIDEO_FULLSCREEN_TOGGLE))
|
||||
g_settings.video.fullscreen = !g_settings.video.fullscreen;
|
||||
|
||||
if (settings & (1ULL << S_DEF_VIDEO_VSYNC))
|
||||
g_settings.video.vsync = true;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user