diff --git a/settings.c b/settings.c index 766e3e6911..7d60ac6910 100644 --- a/settings.c +++ b/settings.c @@ -303,6 +303,7 @@ void config_set_defaults(void) g_settings.video.threaded = g_defaults.settings.video_threaded_enable; g_settings.video.shared_context = video_shared_context; + g_settings.video.viwidth = video_viwidth; g_settings.video.smooth = video_smooth; g_settings.video.force_aspect = force_aspect; g_settings.video.scale_integer = scale_integer; @@ -829,6 +830,7 @@ bool config_load_file(const char *path, bool set_defaults) g_settings.video.swap_interval = min(g_settings.video.swap_interval, 4); CONFIG_GET_BOOL(video.threaded, "video_threaded"); CONFIG_GET_BOOL(video.shared_context, "video_shared_context"); + CONFIG_GET_INT(video.viwidth, "video_viwidth"); CONFIG_GET_BOOL(video.smooth, "video_smooth"); CONFIG_GET_BOOL(video.force_aspect, "video_force_aspect"); CONFIG_GET_BOOL(video.scale_integer, "video_scale_integer"); @@ -1367,6 +1369,7 @@ bool config_save_file(const char *path) config_set_float(conf, "video_yscale", g_settings.video.yscale); config_set_bool(conf, "video_crop_overscan", g_settings.video.crop_overscan); config_set_bool(conf, "video_scale_integer", g_settings.video.scale_integer); + config_set_int(conf, "video_viwidth", g_settings.video.viwidth); config_set_bool(conf, "video_smooth", g_settings.video.smooth); config_set_bool(conf, "video_threaded", g_settings.video.threaded); config_set_bool(conf, "video_shared_context", g_settings.video.shared_context);