diff options
Diffstat (limited to 'src/mame/video/1942.cpp')
-rw-r--r-- | src/mame/video/1942.cpp | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/src/mame/video/1942.cpp b/src/mame/video/1942.cpp index 926bc59d0c3..8cb3cc11e65 100644 --- a/src/mame/video/1942.cpp +++ b/src/mame/video/1942.cpp @@ -135,6 +135,11 @@ void _1942_state::video_start() m_bg_tilemap = &machine().tilemap().create(*m_gfxdecode, tilemap_get_info_delegate(*this, FUNC(_1942_state::get_bg_tile_info)), TILEMAP_SCAN_COLS, 16, 16, 32, 16); m_fg_tilemap->set_transparent_pen(0); + + 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); } void _1942p_state::video_start() @@ -143,6 +148,11 @@ void _1942p_state::video_start() m_bg_tilemap = &machine().tilemap().create(*m_gfxdecode, tilemap_get_info_delegate(*this, FUNC(_1942_state::get_bg_tile_info)), TILEMAP_SCAN_COLS, 16, 16, 32, 16); m_fg_tilemap->set_transparent_pen(3); + + 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); } @@ -225,7 +235,7 @@ void _1942_state::draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect) { const rectangle cliprecty(cliprect.min_x, cliprect.max_x, y, y); uint8_t objdata[4]; - uint8_t v = flip_screen() ? ~(y - 1) : y - 1; + uint8_t v = flip_screen() ? ~(y - 1 - 6) : y - 1 - 6; for (int h = 496; h >= 128; h -= 16) { const bool objcnt4 = BIT(h, 8) != BIT(~h, 7); @@ -283,7 +293,7 @@ void _1942_state::draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect) { do { - m_gfxdecode->gfx(2)->transpen(bitmap, cliprecty, code + i, col, flip_screen(), flip_screen(), sx, sy + 16 * i * dir, 15); + m_gfxdecode->gfx(2)->transpen(bitmap, cliprecty, code + i, col, flip_screen(), flip_screen(), sx+128, sy + 6 + 16 * i * dir, 15); } while (i-- > 0); } } @@ -319,7 +329,7 @@ void _1942p_state::draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect) sy = 240 - sy; } - m_gfxdecode->gfx(2)->transpen(bitmap, cliprect, code, col, flip_screen(), flip_screen(), sx, sy, 15); + m_gfxdecode->gfx(2)->transpen(bitmap, cliprect, code, col, flip_screen(), flip_screen(), sx+128, sy+6, 15); } } |