giz renderers and stuff
authornotaz <notasas@gmail.com>
Tue, 25 Sep 2007 20:56:01 +0000 (20:56 +0000)
committernotaz <notasas@gmail.com>
Tue, 25 Sep 2007 20:56:01 +0000 (20:56 +0000)
git-svn-id: file:///home/notaz/opt/svn/PicoDrive/platform@261 be3aeb3a-fb24-0410-a615-afba39da0efa

common/emu.c
gp2x/emu.c

index 99fca49..c236778 100644 (file)
@@ -446,12 +446,13 @@ int emu_ReadConfig(int game, int no_defaults)
        if (currentConfig.CPUclock < 10 || currentConfig.CPUclock > 4096) currentConfig.CPUclock = 200;\r
        if (currentConfig.gamma < 10 || currentConfig.gamma > 300) currentConfig.gamma = 100;\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
        if (!currentConfig.KeyBinds[23] && !currentConfig.KeyBinds[22]) {\r
                currentConfig.KeyBinds[23] = 1<<29; // vol up\r
                currentConfig.KeyBinds[22] = 1<<30; // vol down\r
        }\r
-\r
+#endif\r
        if (bread > 0) config_slot_current = config_slot;\r
        return (bread > 0); // == sizeof(currentConfig));\r
 }\r
index 63b2d04..8bd1b66 100644 (file)
@@ -229,10 +229,9 @@ void osd_text(int x, int y, const char *text)
 \r
 static void cd_leds(void)\r
 {\r
-       // mmu problems?\r
 //     static\r
        int old_reg;\r
-//     if (!((Pico_mcd->s68k_regs[0] ^ old_reg) & 3)) return; // no change\r
+//     if (!((Pico_mcd->s68k_regs[0] ^ old_reg) & 3)) return; // no change // mmu hack problems?\r
        old_reg = Pico_mcd->s68k_regs[0];\r
 \r
        if ((PicoOpt&0x10)||!(currentConfig.EmuOpt&0x80)) {\r
@@ -252,7 +251,7 @@ static void cd_leds(void)
                unsigned int col_r = (old_reg & 1) ? 0xc000c000 : 0;\r
                *p++ = col_g; *p++ = col_g; p+=2; *p++ = col_r; *p++ = col_r; p += 320/2 - 12/2;\r
                *p++ = col_g; *p++ = col_g; p+=2; *p++ = col_r; *p++ = col_r; p += 320/2 - 12/2;\r
-               *p++ = col_g; *p++ = col_g; p+=2; *p++ = col_r; *p++ = col_r; p += 320/2 - 12/2;\r
+               *p++ = col_g; *p++ = col_g; p+=2; *p++ = col_r; *p++ = col_r;\r
        }\r
 }\r
 \r