psp fixes, gamma
[libpicofe.git] / common / emu.c
index 644a502..71f6716 100644 (file)
@@ -468,7 +468,11 @@ int emu_ReadConfig(int game, int no_defaults)
        //scaling_update();\r
        // some sanity checks\r
        if (currentConfig.CPUclock < 10 || currentConfig.CPUclock > 4096) currentConfig.CPUclock = 200;\r
+#ifdef PSP\r
+       if (currentConfig.gamma < -4 || currentConfig.gamma >  16) currentConfig.gamma = 0;\r
+#else\r
        if (currentConfig.gamma < 10 || currentConfig.gamma > 300) currentConfig.gamma = 100;\r
+#endif\r
        if (currentConfig.volume < 0 || currentConfig.volume > 99) currentConfig.volume = 50;\r
 #ifdef __GP2X__\r
        // if volume keys are unbound, bind them to volume control\r