diff options
Diffstat (limited to 'src/mame/video/gauntlet.cpp')
-rw-r--r-- | src/mame/video/gauntlet.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mame/video/gauntlet.cpp b/src/mame/video/gauntlet.cpp index 89ba735c88b..c9430f4f0ef 100644 --- a/src/mame/video/gauntlet.cpp +++ b/src/mame/video/gauntlet.cpp @@ -83,8 +83,8 @@ VIDEO_START_MEMBER(gauntlet_state,gauntlet) { /* modify the motion object code lookup table to account for the code XOR */ std::vector<UINT16> &codelookup = m_mob->code_lookup(); - for (unsigned int i = 0; i < codelookup.size(); i++) - codelookup[i] ^= 0x800; + for (auto & elem : codelookup) + elem ^= 0x800; /* set up the base color for the playfield */ m_playfield_color_bank = m_vindctr2_screen_refresh ? 0 : 1; @@ -167,7 +167,7 @@ UINT32 gauntlet_state::screen_update_gauntlet(screen_device &screen, bitmap_ind1 /* draw and merge the MO */ bitmap_ind16 &mobitmap = m_mob->bitmap(); - for (const sparse_dirty_rect *rect = m_mob->first_dirty_rect(cliprect); rect != NULL; rect = rect->next()) + for (const sparse_dirty_rect *rect = m_mob->first_dirty_rect(cliprect); rect != nullptr; rect = rect->next()) for (int y = rect->min_y; y <= rect->max_y; y++) { UINT16 *mo = &mobitmap.pix16(y); |