diff options
Diffstat (limited to 'src/mame/video/arcadecl.cpp')
-rw-r--r-- | src/mame/video/arcadecl.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mame/video/arcadecl.cpp b/src/mame/video/arcadecl.cpp index 446ebb928a5..aa8ec654940 100644 --- a/src/mame/video/arcadecl.cpp +++ b/src/mame/video/arcadecl.cpp @@ -80,8 +80,8 @@ uint32_t arcadecl_state::screen_update(screen_device &screen, bitmap_ind16 &bitm for (const sparse_dirty_rect *rect = m_mob->first_dirty_rect(cliprect); rect != nullptr; rect = rect->next()) for (int y = rect->top(); y <= rect->bottom(); y++) { - uint16_t *mo = &mobitmap.pix16(y); - uint16_t *pf = &bitmap.pix16(y); + uint16_t const *const mo = &mobitmap.pix(y); + uint16_t *const pf = &bitmap.pix(y); for (int x = rect->left(); x <= rect->right(); x++) if (mo[x] != 0xffff) { @@ -107,12 +107,12 @@ uint32_t sparkz_state::screen_update(screen_device &screen, bitmap_ind16 &bitmap for (int y = cliprect.top(); y <= cliprect.bottom(); y++) { const uint16_t *const src = &m_bitmap[256 * y]; - uint16_t *const dst = &bitmap.pix16(y); + uint16_t *const dst = &bitmap.pix(y); /* regenerate the line */ for (int x = cliprect.left() & ~1; x <= cliprect.right(); x += 2) { - int bits = src[(x - 8) / 2]; + int const bits = src[(x - 8) / 2]; dst[x + 0] = bits >> 8; dst[x + 1] = bits & 0xff; } |