1
0
mirror of https://github.com/libretro/RetroArch synced 2024-07-08 12:15:49 +00:00

(GX) only apply better gamma setting to wii and use old setting on ngc

(GX) show gamma setting in the video options on ngc, was hidden before
This commit is contained in:
FIX94 2016-06-05 18:57:29 +02:00
parent 553ff7f69f
commit b80bba2061
3 changed files with 8 additions and 3 deletions

View File

@ -131,8 +131,10 @@ enum
RECORD_NULL
};
#ifdef GEKKO
#if defined(HW_RVL)
#define MAX_GAMMA_SETTING 30
#elif defined(GEKKO)
#define MAX_GAMMA_SETTING 2
#else
#define MAX_GAMMA_SETTING 1
#endif

View File

@ -864,10 +864,13 @@ static void gx_resize(void *data)
#ifdef HW_RVL
VIDEO_SetTrapFilter(global->console.softfilter_enable);
#endif
int gamma = global->console.screen.gamma_correction;
if(gamma == 0) gamma = 10; //default 1.0 gamma value
VIDEO_SetGamma(gamma);
#else
int gamma = global->console.screen.gamma_correction;
GX_SetDispCopyGamma(MAX(0,MIN(2,gamma)));
#endif
/* Ignore this for custom resolutions */
if (gx->keep_aspect && gx_mode.efbHeight >= 192)

View File

@ -1207,7 +1207,7 @@ void video_driver_menu_settings(void **list_data, void *list_info_data,
general_write_handler,
general_read_handler);
#endif
#if defined(HW_RVL) || defined(_XBOX360)
#if defined(GEKKO) || defined(_XBOX360)
CONFIG_UINT(
list, list_info,
&global->console.screen.gamma_correction,