summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/video/commando.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/video/commando.cpp')
-rw-r--r--src/mame/video/commando.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mame/video/commando.cpp b/src/mame/video/commando.cpp
index 0297de67b10..92fd2e65112 100644
--- a/src/mame/video/commando.cpp
+++ b/src/mame/video/commando.cpp
@@ -86,6 +86,11 @@ void commando_state::video_start()
m_bg_tilemap = &machine().tilemap().create(*m_gfxdecode, tilemap_get_info_delegate(*this, FUNC(commando_state::get_bg_tile_info)), TILEMAP_SCAN_COLS, 16, 16, 32, 32);
m_fg_tilemap = &machine().tilemap().create(*m_gfxdecode, tilemap_get_info_delegate(*this, FUNC(commando_state::get_fg_tile_info)), TILEMAP_SCAN_ROWS, 8, 8, 32, 32);
+ m_bg_tilemap->set_scrolldx(128, 128);
+ m_bg_tilemap->set_scrolldy( 6, 6);
+ m_fg_tilemap->set_scrolldx(128, 128);
+ m_fg_tilemap->set_scrolldy( 6, 6);
+
m_fg_tilemap->set_transparent_pen(3);
}
@@ -115,7 +120,7 @@ void commando_state::draw_sprites( bitmap_ind16 &bitmap, const rectangle &clipre
}
if (bank < 3)
- m_gfxdecode->gfx(2)->transpen(bitmap,cliprect, code, color, flipx, flipy, sx, sy, 15);
+ m_gfxdecode->gfx(2)->transpen(bitmap,cliprect, code, color, flipx, flipy, sx+128, sy+6, 15);
}
}