fixed index out-of-bounds access in MC6845_UPDATE_ROW( abc806_update_row ) (nw)
This commit is contained in:
parent
04ca6fea7e
commit
d8cb89b2a1
@ -327,11 +327,11 @@ static MC6845_UPDATE_ROW( abc806_update_row )
|
||||
int color = BIT(chargen_data, 7) ? fg_color : bg_color;
|
||||
if (!de) color = rgb_t::black;
|
||||
|
||||
bitmap.pix32(y, x++) = PALETTE_ABC[color];
|
||||
bitmap.pix32(y, x++) = PALETTE_ABC[color & 0x07];
|
||||
|
||||
if (e5 || e6)
|
||||
{
|
||||
bitmap.pix32(y, x++) = PALETTE_ABC[color];
|
||||
bitmap.pix32(y, x++) = PALETTE_ABC[color & 0x07];
|
||||
}
|
||||
|
||||
chargen_data <<= 1;
|
||||
|
Loading…
Reference in New Issue
Block a user