summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/toratora.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/toratora.cpp')
-rw-r--r--src/mame/drivers/toratora.cpp10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/mame/drivers/toratora.cpp b/src/mame/drivers/toratora.cpp
index 805860a038f..4e3e827f373 100644
--- a/src/mame/drivers/toratora.cpp
+++ b/src/mame/drivers/toratora.cpp
@@ -121,20 +121,16 @@ WRITE_LINE_MEMBER(toratora_state::cb2_u2_w)
uint32_t toratora_state::screen_update_toratora(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 >> 5;
uint8_t x = offs << 3;
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;