diff options
Diffstat (limited to 'src/mame/video/cheekyms.cpp')
-rw-r--r-- | src/mame/video/cheekyms.cpp | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/mame/video/cheekyms.cpp b/src/mame/video/cheekyms.cpp index ffbb90db6aa..438084a922d 100644 --- a/src/mame/video/cheekyms.cpp +++ b/src/mame/video/cheekyms.cpp @@ -151,7 +151,6 @@ void cheekyms_state::draw_sprites( bitmap_ind16 &bitmap, const rectangle &clipre uint32_t cheekyms_state::screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect) { - int y, x; int scrolly = ((*m_port_80 >> 3) & 0x07); int flip = *m_port_80 & 0x80; @@ -168,9 +167,9 @@ uint32_t cheekyms_state::screen_update(screen_device &screen, bitmap_ind16 &bitm m_cm_tilemap->draw(screen, *m_bitmap_buffer, cliprect, 0, 0); /* draw the tilemap to the final bitmap applying the scroll to the man character */ - for (y = cliprect.min_y; y <= cliprect.max_y; y++) + for (int y = cliprect.min_y; y <= cliprect.max_y; y++) { - for (x = cliprect.min_x; x <= cliprect.max_x; x++) + for (int x = cliprect.min_x; x <= cliprect.max_x; x++) { int in_man_area; @@ -185,13 +184,13 @@ uint32_t cheekyms_state::screen_update(screen_device &screen, bitmap_ind16 &bitm if (in_man_area) { - if ((y + scrolly) < 27 * 8 && m_bitmap_buffer->pix16(y + scrolly, x) != 0) - bitmap.pix16(y, x) = m_bitmap_buffer->pix16(y + scrolly, x); + if ((y + scrolly) < 27 * 8 && m_bitmap_buffer->pix(y + scrolly, x) != 0) + bitmap.pix(y, x) = m_bitmap_buffer->pix(y + scrolly, x); } else { - if(m_bitmap_buffer->pix16(y, x) != 0) - bitmap.pix16(y, x) = m_bitmap_buffer->pix16(y, x); + if(m_bitmap_buffer->pix(y, x) != 0) + bitmap.pix(y, x) = m_bitmap_buffer->pix(y, x); } } } |