fixed index out-of-bounds access in MC6845_UPDATE_ROW( abc806_update_row ) (nw)

This commit is contained in:
Oliver Stöneberg 2014-03-31 13:10:25 +00:00
parent 04ca6fea7e
commit d8cb89b2a1

View File

@ -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;