Video fullscreen toggle - mutation of g_settings now done through

settings_set
This commit is contained in:
twinaphex 2013-09-19 12:41:02 +02:00
parent 1fc1014448
commit a565f792a4
3 changed files with 5 additions and 1 deletions

View File

@ -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,

View File

@ -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);
}

View File

@ -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;