summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/video/batman.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/video/batman.cpp')
-rw-r--r--src/mame/video/batman.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/mame/video/batman.cpp b/src/mame/video/batman.cpp
index eb5b4c27f25..9d9746580ec 100644
--- a/src/mame/video/batman.cpp
+++ b/src/mame/video/batman.cpp
@@ -120,9 +120,9 @@ uint32_t batman_state::screen_update_batman(screen_device &screen, bitmap_ind16
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] != 0xffff)
{
@@ -143,7 +143,7 @@ uint32_t batman_state::screen_update_batman(screen_device &screen, bitmap_ind16
obscured by high fg playfield pens priority 3 only
obscured by bg playfield priority 3 only
*/
- 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)
@@ -152,7 +152,7 @@ uint32_t batman_state::screen_update_batman(screen_device &screen, bitmap_ind16
/* foreground playfield case */
if (pri[x] & 0x80)
{
- int pfpriority = (pri[x] >> 2) & 3;
+ int const pfpriority = (pri[x] >> 2) & 3;
/* playfield priority 3 always wins */
if (pfpriority == 3)
@@ -170,7 +170,7 @@ uint32_t batman_state::screen_update_batman(screen_device &screen, bitmap_ind16
/* background playfield case */
else
{
- int pfpriority = pri[x] & 3;
+ int const pfpriority = pri[x] & 3;
/* playfield priority 3 always wins */
if (pfpriority == 3)
@@ -192,12 +192,12 @@ uint32_t batman_state::screen_update_batman(screen_device &screen, bitmap_ind16
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 *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)
{
- 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 might mean palette kludges */
if (mopriority & 4)