Previous 15994 Revisions Next

r5422 Thursday 13th August, 2009 at 16:48:36 UTC by Angelo Salese
[SNES]: Fixed direct color gfxs in mode 7
[src/mame/video]snes.c

src/mame/video/snes.c
r5421r5422
476476         color_shift = 0;   //n/a, pal offset is always zero
477477         color_planes = 8;
478478         tile_divider = 4;
479         if(snes_ppu.direct_color) //we don't know what games trigger this one...
480            fatalerror("8bpp graphics with direct color, gfx mode used = %02x",snes_ppu.mode);
479481         break;
480482   }
481483
r5421r5422
694696      {
695697         UINT16 clr;
696698         /* Direct select, but only outside EXTBG! */
697         if (snes_ppu.direct_color && layer == 1)
699         if (snes_ppu.direct_color && layer == 0)
698700            clr = ((colour & 0x07) << 2) | ((colour & 0x38) << 4) | ((colour & 0xc0) << 7);
699701         else
700702            clr = snes_cgram[colour];

Previous 15994 Revisions Next


© 1998-2018 The MESS Team