X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=gp2x%2Femu.c;h=8bd1b66ac3b5944c92861370822ee294b5c160d1;hb=8ede36b95ea08e10f12e67a487c508a0c8993d6c;hp=63b2d047d0ee18268ad90c9414573ee89faecc60;hpb=1378d18bd6388e8f41f5361d022b5fba325917b9;p=libpicofe.git diff --git a/gp2x/emu.c b/gp2x/emu.c index 63b2d04..8bd1b66 100644 --- a/gp2x/emu.c +++ b/gp2x/emu.c @@ -229,10 +229,9 @@ void osd_text(int x, int y, const char *text) static void cd_leds(void) { - // mmu problems? // static int old_reg; -// if (!((Pico_mcd->s68k_regs[0] ^ old_reg) & 3)) return; // no change +// if (!((Pico_mcd->s68k_regs[0] ^ old_reg) & 3)) return; // no change // mmu hack problems? old_reg = Pico_mcd->s68k_regs[0]; if ((PicoOpt&0x10)||!(currentConfig.EmuOpt&0x80)) { @@ -252,7 +251,7 @@ static void cd_leds(void) unsigned int col_r = (old_reg & 1) ? 0xc000c000 : 0; *p++ = col_g; *p++ = col_g; p+=2; *p++ = col_r; *p++ = col_r; p += 320/2 - 12/2; *p++ = col_g; *p++ = col_g; p+=2; *p++ = col_r; *p++ = col_r; p += 320/2 - 12/2; - *p++ = col_g; *p++ = col_g; p+=2; *p++ = col_r; *p++ = col_r; p += 320/2 - 12/2; + *p++ = col_g; *p++ = col_g; p+=2; *p++ = col_r; *p++ = col_r; } }