X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=platform%2Fcommon%2Femu.c;h=71f6716a46c1da32982cf366385ba771080c7db3;hb=2445b7cb6d5a0f0aa8697fdaa8af8ca52780f5b7;hp=644a5027517d5d453ecac9fb0e3ee3f0b368079d;hpb=c6196c0f0108d27df27d576ece320b3ec5705bb3;p=picodrive.git diff --git a/platform/common/emu.c b/platform/common/emu.c index 644a502..71f6716 100644 --- a/platform/common/emu.c +++ b/platform/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