mirror of
https://github.com/holub/mame
synced 2025-05-25 23:35:26 +03:00
[SNES]: Fixed direct color gfxs in mode 7
This commit is contained in:
parent
3db0af5eef
commit
3c4fbfa9f7
@ -476,6 +476,8 @@ INLINE void snes_update_line( UINT8 screen, UINT8 color_depth, UINT8 hires, UINT
|
|||||||
color_shift = 0; //n/a, pal offset is always zero
|
color_shift = 0; //n/a, pal offset is always zero
|
||||||
color_planes = 8;
|
color_planes = 8;
|
||||||
tile_divider = 4;
|
tile_divider = 4;
|
||||||
|
if(snes_ppu.direct_color) //we don't know what games trigger this one...
|
||||||
|
fatalerror("8bpp graphics with direct color, gfx mode used = %02x",snes_ppu.mode);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -694,7 +696,7 @@ static void snes_update_line_mode7(UINT8 screen, UINT8 priority_a, UINT8 priorit
|
|||||||
{
|
{
|
||||||
UINT16 clr;
|
UINT16 clr;
|
||||||
/* Direct select, but only outside EXTBG! */
|
/* Direct select, but only outside EXTBG! */
|
||||||
if (snes_ppu.direct_color && layer == 1)
|
if (snes_ppu.direct_color && layer == 0)
|
||||||
clr = ((colour & 0x07) << 2) | ((colour & 0x38) << 4) | ((colour & 0xc0) << 7);
|
clr = ((colour & 0x07) << 2) | ((colour & 0x38) << 4) | ((colour & 0xc0) << 7);
|
||||||
else
|
else
|
||||||
clr = snes_cgram[colour];
|
clr = snes_cgram[colour];
|
||||||
|
Loading…
Reference in New Issue
Block a user