From 10723bca01af3e7b572cd8dd220a5f46e6fe0af6 Mon Sep 17 00:00:00 2001 From: benoa Date: Thu, 10 Jan 2019 18:18:20 +0100 Subject: [PATCH] Wii: Fix Gamma setting not saved. --- gfx/video_driver.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/gfx/video_driver.c b/gfx/video_driver.c index ce9a83cc40..3d29a3c182 100644 --- a/gfx/video_driver.c +++ b/gfx/video_driver.c @@ -2054,8 +2054,13 @@ void video_driver_load_settings(config_file_t *conf) if (!conf) return; +#ifdef _XBOX CONFIG_GET_BOOL_BASE(conf, global, console.screen.gamma_correction, "gamma_correction"); +#else + CONFIG_GET_INT_BASE(conf, global, + console.screen.gamma_correction, "gamma_correction"); +#endif if (config_get_bool(conf, "flicker_filter_enable", &tmp_bool)) @@ -2082,8 +2087,13 @@ void video_driver_save_settings(config_file_t *conf) if (!conf) return; +#ifdef _XBOX config_set_bool(conf, "gamma_correction", global->console.screen.gamma_correction); +#else + config_set_int(conf, "gamma_correction", + global->console.screen.gamma_correction); +#endif config_set_bool(conf, "flicker_filter_enable", global->console.flickerfilter_enable); config_set_bool(conf, "soft_filter_enable",