diff options
Diffstat (limited to 'src/mame/video/strnskil.c')
-rw-r--r-- | src/mame/video/strnskil.c | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/src/mame/video/strnskil.c b/src/mame/video/strnskil.c index 84c7743e5e4..d7523a755e0 100644 --- a/src/mame/video/strnskil.c +++ b/src/mame/video/strnskil.c @@ -41,8 +41,7 @@ PALETTE_INIT_MEMBER(strnskil_state, strnskil) WRITE8_MEMBER(strnskil_state::strnskil_videoram_w) { - UINT8 *videoram = m_videoram; - videoram[offset] = data; + m_videoram[offset] = data; m_bg_tilemap->mark_tile_dirty(offset / 2); } @@ -59,9 +58,8 @@ WRITE8_MEMBER(strnskil_state::strnskil_scrl_ctrl_w) TILE_GET_INFO_MEMBER(strnskil_state::get_bg_tile_info) { - UINT8 *videoram = m_videoram; - int attr = videoram[tile_index * 2]; - int code = videoram[(tile_index * 2) + 1] + ((attr & 0x60) << 3); + int attr = m_videoram[tile_index * 2]; + int code = m_videoram[(tile_index * 2) + 1] + ((attr & 0x60) << 3); int color = (attr & 0x1f) | ((attr & 0x80) >> 2); SET_TILE_INFO_MEMBER(0, code, color, 0); @@ -77,18 +75,17 @@ void strnskil_state::video_start() void strnskil_state::draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect) { - UINT8 *spriteram = m_spriteram; int offs; for (offs = 0x60; offs < 0x100; offs += 4) { - int code = spriteram[offs + 1]; - int color = spriteram[offs + 2] & 0x3f; + int code = m_spriteram[offs + 1]; + int color = m_spriteram[offs + 2] & 0x3f; int flipx = flip_screen_x(); int flipy = flip_screen_y(); - int sx = spriteram[offs + 3]; - int sy = spriteram[offs]; + int sx = m_spriteram[offs + 3]; + int sy = m_spriteram[offs]; int px, py; if (flip_screen()) @@ -118,10 +115,9 @@ void strnskil_state::draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprec UINT32 strnskil_state::screen_update_strnskil(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect) { - int row; const UINT8 *usr1 = memregion("user1")->base(); - for (row = 0; row < 32; row++) + for (int row = 0; row < 32; row++) { if (m_scrl_ctrl != 0x07) { |