summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/video/lviv.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/video/lviv.cpp')
-rw-r--r--src/mame/video/lviv.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/mame/video/lviv.cpp b/src/mame/video/lviv.cpp
index e53ccfd9768..65aeb6ced32 100644
--- a/src/mame/video/lviv.cpp
+++ b/src/mame/video/lviv.cpp
@@ -63,18 +63,19 @@ uint32_t lviv_state::screen_update(screen_device &screen, bitmap_ind16 &bitmap,
for (int x = 0; x < 256; x += 4)
{
const uint8_t data = m_vram[(y << 6) | (x >> 2)];
+ int pen;
- int pen = m_colortable[0][((data & 0x08) >> 3) | ((data & 0x80) >> (3+3))];
- bitmap.pix16(y, x + 0) = pen;
+ pen = m_colortable[0][((data & 0x08) >> 3) | ((data & 0x80) >> (3+3))];
+ bitmap.pix(y, x + 0) = pen;
pen = m_colortable[0][((data & 0x04) >> 2) | ((data & 0x40) >> (2+3))];
- bitmap.pix16(y, x + 1) = pen;
+ bitmap.pix(y, x + 1) = pen;
pen = m_colortable[0][((data & 0x02) >> 1) | ((data & 0x20) >> (1+3))];
- bitmap.pix16(y, x + 2) = pen;
+ bitmap.pix(y, x + 2) = pen;
pen = m_colortable[0][((data & 0x01) >> 0) | ((data & 0x10) >> (0+3))];
- bitmap.pix16(y, x + 3) = pen;
+ bitmap.pix(y, x + 3) = pen;
}
}
return 0;