diff options
Diffstat (limited to 'src/mame/drivers/beaminv.cpp')
-rw-r--r-- | src/mame/drivers/beaminv.cpp | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/src/mame/drivers/beaminv.cpp b/src/mame/drivers/beaminv.cpp index e323210244f..91b9e7b664d 100644 --- a/src/mame/drivers/beaminv.cpp +++ b/src/mame/drivers/beaminv.cpp @@ -186,23 +186,19 @@ void beaminv_state::machine_reset() uint32_t beaminv_state::screen_update_beaminv(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect) { - offs_t offs; - - for (offs = 0; offs < m_videoram.bytes(); offs++) + for (offs_t offs = 0; offs < m_videoram.bytes(); offs++) { - int i; - uint8_t y = offs; uint8_t x = offs >> 8 << 3; uint8_t data = m_videoram[offs]; - for (i = 0; i < 8; i++) + for (int i = 0; i < 8; i++) { pen_t pen = (data & 0x01) ? rgb_t::white() : rgb_t::black(); - bitmap.pix32(y, x) = pen; + bitmap.pix(y, x) = pen; - data = data >> 1; - x = x + 1; + data >>= 1; + x++; } } |