X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=gp2x%2Femu.c;h=dc785210ab99d9b979a7e567253def0fec9a1bb5;hb=61f66fe0ab7ab4047a2c005fc52afeb50c26fc12;hp=c225f18e7e2dcf98fb485e0bab91c7ede0797cda;hpb=ac087c0e3af45d03045e2ef39f64267e3b41278b;p=libpicofe.git diff --git a/gp2x/emu.c b/gp2x/emu.c index c225f18..dc78521 100644 --- a/gp2x/emu.c +++ b/gp2x/emu.c @@ -283,7 +283,7 @@ static void blit(const char *fps, const char *notice) // 8bit accurate renderer if (Pico.m.dirtyPal) { - int pallen = 0x40; + int pallen = 0xc0; Pico.m.dirtyPal = 0; if (Pico.video.reg[0xC]&8) // shadow/hilight mode { @@ -293,21 +293,14 @@ static void blit(const char *fps, const char *notice) memcpy32(localPal+0xc0, localPal+0x40, 0x40); pallen = 0x100; } - else if (rendstatus & PDRAW_ACC_SPRITES) { - vidConvCpyRGB32(localPal, Pico.cram, 0x40); - memcpy32(localPal+0x40, localPal, 0x40); - memcpy32(localPal+0x80, localPal, 0x40); - memcpy32(localPal+0xc0, localPal, 0x40); - pallen = 0x100; - } else if (rendstatus & PDRAW_SONIC_MODE) { // mid-frame palette changes vidConvCpyRGB32(localPal, Pico.cram, 0x40); vidConvCpyRGB32(localPal+0x40, HighPal, 0x40); vidConvCpyRGB32(localPal+0x80, HighPal+0x40, 0x40); - pallen = 0xc0; } else { vidConvCpyRGB32(localPal, Pico.cram, 0x40); + memcpy32(localPal+0x80, localPal, 0x40); // for spr prio mess } if (pallen > 0xc0) { localPal[0xc0] = 0x0000c000;