X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=common%2Femu.c;h=71f6716a46c1da32982cf366385ba771080c7db3;hb=93c0d147a19160bcf970edac8d0e27f93537ae8d;hp=644a5027517d5d453ecac9fb0e3ee3f0b368079d;hpb=f3f1615e5e683c42588648cac06077ba7652d5b8;p=libpicofe.git diff --git a/common/emu.c b/common/emu.c index 644a502..71f6716 100644 --- a/common/emu.c +++ b/common/emu.c @@ -468,7 +468,11 @@ int emu_ReadConfig(int game, int no_defaults) //scaling_update(); // some sanity checks if (currentConfig.CPUclock < 10 || currentConfig.CPUclock > 4096) currentConfig.CPUclock = 200; +#ifdef PSP + if (currentConfig.gamma < -4 || currentConfig.gamma > 16) currentConfig.gamma = 0; +#else if (currentConfig.gamma < 10 || currentConfig.gamma > 300) currentConfig.gamma = 100; +#endif if (currentConfig.volume < 0 || currentConfig.volume > 99) currentConfig.volume = 50; #ifdef __GP2X__ // if volume keys are unbound, bind them to volume control