mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-23 16:09:47 +00:00
Make gamma correction 'int' type across the board
This commit is contained in:
parent
cb5de27631
commit
a8fdfd77ce
@ -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);
|
||||
|
||||
|
10
retroarch.c
10
retroarch.c
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user