mirror of
https://github.com/holub/mame
synced 2025-04-26 18:23:08 +03:00
pcd: correct background color in inverse mode (nw)
This commit is contained in:
parent
762c8355ca
commit
3e14c835e0
@ -189,21 +189,25 @@ SCN2674_DRAW_CHARACTER_MEMBER(pcd_video_device::display_pixels)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
UINT8 data, attr;
|
UINT8 data, attr;
|
||||||
int bgnd = 0;
|
int bgnd = 0, fgnd = 1;
|
||||||
data = m_charram[m_vram[address] * 16 + linecount];
|
data = m_charram[m_vram[address] * 16 + linecount];
|
||||||
attr = m_vram[address + 1];
|
attr = m_vram[address + 1];
|
||||||
if(cursor && blink)
|
if(cursor && blink)
|
||||||
data = 0xff;
|
data = 0xff;
|
||||||
if(ul && (attr & 0x20))
|
if(ul && (attr & 0x20))
|
||||||
data = 0xff;
|
data = 0xff;
|
||||||
if(attr & 8)
|
|
||||||
bgnd = 2;
|
|
||||||
if(attr & 0x10)
|
if(attr & 0x10)
|
||||||
data = ~data;
|
data = ~data;
|
||||||
if(m_p2 & 8)
|
if(m_p2 & 8)
|
||||||
data = ~data;
|
{
|
||||||
|
fgnd = 0;
|
||||||
|
bgnd = (attr & 8) ? 2 : 1;
|
||||||
|
}
|
||||||
|
else if(attr & 8)
|
||||||
|
bgnd = 2;
|
||||||
for(int i = 0; i < 8; i++)
|
for(int i = 0; i < 8; i++)
|
||||||
bitmap.pix32(y, x + i) = m_palette->pen((data & (1 << (7 - i))) ? 1 : bgnd);
|
bitmap.pix32(y, x + i) = m_palette->pen((data & (1 << (7 - i))) ? fgnd : bgnd);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user