diff options
Diffstat (limited to 'src/mame/video/cybstorm.cpp')
-rw-r--r-- | src/mame/video/cybstorm.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/mame/video/cybstorm.cpp b/src/mame/video/cybstorm.cpp index 70c071be563..b27c73824c8 100644 --- a/src/mame/video/cybstorm.cpp +++ b/src/mame/video/cybstorm.cpp @@ -131,13 +131,13 @@ uint32_t cybstorm_state::screen_update_cybstorm(screen_device &screen, bitmap_in for (const sparse_dirty_rect *rect = m_vad->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); - uint8_t *pri = &priority_bitmap.pix8(y); + uint16_t const *const mo = &mobitmap.pix(y); + uint16_t *const pf = &bitmap.pix(y); + uint8_t const *const pri = &priority_bitmap.pix(y); for (int x = rect->left(); x <= rect->right(); x++) if (mo[x]) { - int mopriority = mo[x] >> atari_motion_objects_device::PRIORITY_SHIFT; + int const mopriority = mo[x] >> atari_motion_objects_device::PRIORITY_SHIFT; /* upper bit of MO priority signals special rendering and doesn't draw anything */ if (mopriority & 4) @@ -149,7 +149,7 @@ uint32_t cybstorm_state::screen_update_cybstorm(screen_device &screen, bitmap_in /* foreground playfield case */ if (pri[x] & 0x80) { - int pfpriority = (pri[x] >> 2) & 3; + int const pfpriority = (pri[x] >> 2) & 3; if (mopriority > pfpriority) pf[x] = (mo[x] & atari_motion_objects_device::DATA_MASK) | 0x1000; @@ -158,7 +158,7 @@ uint32_t cybstorm_state::screen_update_cybstorm(screen_device &screen, bitmap_in /* background playfield case */ else { - int pfpriority = pri[x] & 3; + int const pfpriority = pri[x] & 3; /* playfield priority 3 always wins */ if (pfpriority == 3) @@ -177,8 +177,8 @@ uint32_t cybstorm_state::screen_update_cybstorm(screen_device &screen, bitmap_in for (const sparse_dirty_rect *rect = m_vad->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 mo = &mobitmap.pix(y); + uint16_t *const pf = &bitmap.pix(y); int count = 0; for (int x = rect->left(); x <= rect->right() || (count && x < bitmap.width()); x++) { |