Make gamma correction 'int' type across the board

This commit is contained in:
twinaphex 2020-05-20 15:04:16 +02:00
parent cb5de27631
commit a8fdfd77ce
2 changed files with 2 additions and 12 deletions

View File

@ -645,8 +645,8 @@ void d3d9_make_d3dpp(void *data,
#ifdef _XBOX
/* TODO/FIXME - get rid of global state dependencies. */
global_t *global = global_get_ptr();
bool gamma_enable = global ?
global->console.screen.gamma_correction : false;
int gamma_enable = global ?
global->console.screen.gamma_correction : 0;
#endif
bool windowed_enable = d3d9_is_windowed_enable(info->fullscreen);

View File

@ -22411,13 +22411,8 @@ 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))
@ -22444,13 +22439,8 @@ 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",