diff options
Diffstat (limited to 'src/mame/drivers/micral.cpp')
-rw-r--r-- | src/mame/drivers/micral.cpp | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/src/mame/drivers/micral.cpp b/src/mame/drivers/micral.cpp index 12c1c90f2af..692c61480b7 100644 --- a/src/mame/drivers/micral.cpp +++ b/src/mame/drivers/micral.cpp @@ -323,21 +323,20 @@ INPUT_PORTS_END uint32_t micral_state::screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect) { - uint8_t y,ra,chr,gfx; - uint16_t sy=0,ma=0,x; + uint16_t sy=0,ma=0; - for (y = 0; y < 24; y++) + for (uint8_t y = 0; y < 24; y++) { - for (ra = 0; ra < 10; ra++) + for (uint8_t ra = 0; ra < 10; ra++) { - uint16_t *p = &bitmap.pix16(sy++); + uint16_t *p = &bitmap.pix(sy++); - for (x = 0; x < 80; x++) + for (uint16_t x = 0; x < 80; x++) { - gfx = 0; + uint8_t gfx = 0; if (ra < 9) { - chr = m_vram[x+ma]; + uint8_t chr = m_vram[x+ma]; gfx = m_p_chargen[(chr<<4) | ra ]; if (((s_curpos & 0xff)==x) && ((s_curpos >> 8)==y)) gfx ^= 0xff; |