diff options
Diffstat (limited to 'src/mame/drivers/minivadr.cpp')
-rw-r--r-- | src/mame/drivers/minivadr.cpp | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/src/mame/drivers/minivadr.cpp b/src/mame/drivers/minivadr.cpp index 0b0b1bd4c88..329d3c5fa15 100644 --- a/src/mame/drivers/minivadr.cpp +++ b/src/mame/drivers/minivadr.cpp @@ -65,23 +65,19 @@ private: uint32_t minivadr_state::screen_update_minivadr(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 x = offs << 3; - int y = offs >> 5; + const int y = offs >> 5; uint8_t data = m_videoram[offs]; - for (i = 0; i < 8; i++) + for (int i = 0; i < 8; i++) { pen_t pen = (data & 0x80) ? 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++; } } |