Previous 15994 Revisions Next

r5428 Thursday 13th August, 2009 at 21:10:05 UTC by Angelo Salese
[SNES]: Reverted color shifting since that it's confirmed that data is actually zero padded.
[src/mame/video]snes.c

src/mame/video/snes.c
r5427r5428
276276         {
277277            if(direct_colors)
278278            {
279               /* format is  | BBb00 | GGGg0 | RRRr0, most significant data gets repeated on the least significant bytes */
279               /* format is  0 | BBb00 | GGGg0 | RRRr0, HW confirms that the data is zero padded. */
280280               c = ((colour & 0x07) << 2) | ((colour & 0x38) << 4) | ((colour & 0xc0) << 7);
281281               c |= ((pal & 0x01) << 1) | ((pal & 0x02) << 5) | ((pal & 0x4) << 10);
282               c |= (colour & 0x01) | (colour & 0x20) | ((colour & 0x80) << 4);
283282            }
284283            else
285284               c = snes_cgram[pal + colour];
r5427r5428
705704         /* Direct select, but only outside EXTBG! */
706705         if (snes_ppu.direct_color && layer == 0)
707706         {
708            /* 0 | BBbbb | GGGgg | RRRrr */
707            /* 0 | BB000 | GGG00 | RRR00, HW confirms that the data is zero padded. */
709708            clr = ((colour & 0x07) << 2) | ((colour & 0x38) << 4) | ((colour & 0xc0) << 7);
710            clr|= (colour & 0x03) | ((colour & 0x30) << 1) | ((colour & 0xc0) << 5) | ((colour & 0x80) << 3);
711709         }
712710         else
713711            clr = snes_cgram[colour];

Previous 15994 Revisions Next


© 1998-2018 The MESS Team