summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/video/chaknpop.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/video/chaknpop.cpp')
-rw-r--r--src/mame/video/chaknpop.cpp11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/mame/video/chaknpop.cpp b/src/mame/video/chaknpop.cpp
index 06905c73deb..675b0f3644b 100644
--- a/src/mame/video/chaknpop.cpp
+++ b/src/mame/video/chaknpop.cpp
@@ -208,9 +208,8 @@ void chaknpop_state::draw_sprites( bitmap_ind16 &bitmap, const rectangle &clipre
void chaknpop_state::draw_bitmap( bitmap_ind16 &bitmap, const rectangle &cliprect )
{
int dx = m_flip_x ? -1 : 1;
- int offs, i;
- for (offs = 0; offs < 0x2000; offs++)
+ for (int offs = 0; offs < 0x2000; offs++)
{
int x = ((offs & 0x1f) << 3) + 7;
int y = offs >> 5;
@@ -221,7 +220,7 @@ void chaknpop_state::draw_bitmap( bitmap_ind16 &bitmap, const rectangle &cliprec
if (!m_flip_y)
y = 255 - y;
- for (i = 0x80; i > 0; i >>= 1, x += dx)
+ for (int i = 0x80; i > 0; i >>= 1, x += dx)
{
pen_t color = 0;
@@ -235,11 +234,7 @@ void chaknpop_state::draw_bitmap( bitmap_ind16 &bitmap, const rectangle &cliprec
color |= 0x040; // tx mask
if (color)
- {
- pen_t pen = bitmap.pix16(y, x);
- pen |= color;
- bitmap.pix16(y, x) = pen;
- }
+ bitmap.pix(y, x) |= color;
}
}
}