X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=platform%2Fcommon%2Fconfig_file.c;h=97369cb452f3e6f35a7cd550bf6a768350512e74;hb=274fcc35aa20e9777a8e09630a94088757384329;hp=f058fbd8dd052ca60c6b5dc67bf5b31c4d749a26;hpb=ed4402a7dfd12dbbf34c547b438a671ae8114197;p=picodrive.git diff --git a/platform/common/config_file.c b/platform/common/config_file.c index f058fbd..97369cb 100644 --- a/platform/common/config_file.c +++ b/platform/common/config_file.c @@ -308,16 +308,6 @@ static int custom_read(menu_entry *me, const char *var, const char *val) return 0; return 1; - case MA_OPT2_GAMMA: - if (strcasecmp(var, "Gamma correction") != 0) return 0; - currentConfig.gamma = (int) (atof(val) * 100.0); - return 1; - - case MA_CDOPT_READAHEAD: - if (strcasecmp(var, "ReadAhead buffer") != 0) return 0; - PicoCDBuffers = atoi(val) / 2; - return 1; - case MA_32XOPT_MSH2_CYCLES: currentConfig.msh2_khz = atoi(val); Pico32xSetClocks(currentConfig.msh2_khz * 1000, 0); @@ -328,6 +318,10 @@ static int custom_read(menu_entry *me, const char *var, const char *val) Pico32xSetClocks(0, currentConfig.ssh2_khz * 1000); return 1; + case MA_OPT2_GAMMA: + currentConfig.gamma = atoi(val); + return 1; + /* PSP */ case MA_OPT3_SCALE: if (strcasecmp(var, "Scale factor") != 0) return 0;