X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=platform%2Fcommon%2Fconfig.c;h=4f80c86c885f79af86aeb0a3bab0013fc0e66321;hb=ee2a3bdfa5a969ea9446b2d08748f16e29bbd4d5;hp=3ad6a94e46b5f53aadeb64070745951b25171ed5;hpb=9025b93159042e856af2fb1a1e7e5017f9fee99c;p=picodrive.git diff --git a/platform/common/config.c b/platform/common/config.c index 3ad6a94..4f80c86 100644 --- a/platform/common/config.c +++ b/platform/common/config.c @@ -451,13 +451,13 @@ static int custom_read(menu_entry *me, const char *var, const char *val) #ifdef __GP2X__ if (strcasecmp(var, "Scaling") != 0) return 0; if (strcasecmp(val, "OFF") == 0) { - currentConfig.scaling = 0; + currentConfig.scaling = EOPT_SCALE_NONE; } else if (strcasecmp(val, "hw horizontal") == 0) { - currentConfig.scaling = 1; + currentConfig.scaling = EOPT_SCALE_HW_H; } else if (strcasecmp(val, "hw horiz. + vert.") == 0) { - currentConfig.scaling = 2; + currentConfig.scaling = EOPT_SCALE_HW_HV; } else if (strcasecmp(val, "sw horizontal") == 0) { - currentConfig.scaling = 3; + currentConfig.scaling = EOPT_SCALE_SW_H; } else return 0; return 1; @@ -538,6 +538,7 @@ static int custom_read(menu_entry *me, const char *var, const char *val) return 0; return 1; +#if 0 // TODO rm? case MA_OPT_CPU_CLOCKS: #ifdef __GP2X__ if (strcasecmp(var, "GP2X CPU clocks") != 0) return 0; @@ -546,6 +547,7 @@ static int custom_read(menu_entry *me, const char *var, const char *val) #endif currentConfig.CPUclock = atoi(val); return 1; +#endif case MA_OPT2_GAMMA: if (strcasecmp(var, "Gamma correction") != 0) return 0;