crei680: fixed potential crash scenario

This commit is contained in:
Robbbert 2021-05-22 01:10:43 +10:00
parent eab3ae7e54
commit 2c331d5f58

View File

@ -178,9 +178,7 @@ MC6845_UPDATE_ROW( crei680_state::crtc_update_row )
chr |= 0x40; chr |= 0x40;
u8 gfx = (ra < 8) ? m_cgen[(chr<<3) | ra] : 0; u8 gfx = (ra < 8) ? m_cgen[(chr<<3) | ra] : 0;
/* Display a scanline of a character (8 pixels) */ /* Display a scanline of a character (6 pixels) */
*p++ = palette[BIT(gfx, 7)];
*p++ = palette[BIT(gfx, 6)];
*p++ = palette[BIT(gfx, 5)]; *p++ = palette[BIT(gfx, 5)];
*p++ = palette[BIT(gfx, 4)]; *p++ = palette[BIT(gfx, 4)];
*p++ = palette[BIT(gfx, 3)]; *p++ = palette[BIT(gfx, 3)];