summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/video/bsktball.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/video/bsktball.cpp')
-rw-r--r--src/mame/video/bsktball.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/mame/video/bsktball.cpp b/src/mame/video/bsktball.cpp
index 2f6fb27d2d5..39d2e98c33b 100644
--- a/src/mame/video/bsktball.cpp
+++ b/src/mame/video/bsktball.cpp
@@ -29,16 +29,15 @@ TILE_GET_INFO_MEMBER(bsktball_state::get_bg_tile_info)
void bsktball_state::video_start()
{
m_bg_tilemap = &machine().tilemap().create(*m_gfxdecode, tilemap_get_info_delegate(*this, FUNC(bsktball_state::get_bg_tile_info)), TILEMAP_SCAN_ROWS, 8, 8, 32, 32);
+ m_bg_tilemap->set_scrolldy(16, 16);
}
void bsktball_state::draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect )
{
- int mot;
-
- for (mot = 0; mot < 16; mot++)
+ for (int mot = 0; mot < 16; mot++)
{
int pic = m_motion[mot * 4];
- int sy = 28 * 8 - m_motion[mot * 4 + 1];
+ int sy = 256 - m_motion[mot * 4 + 1] - 16;
int sx = m_motion[mot * 4 + 2];
int color = m_motion[mot * 4 + 3];
int flipx = (pic & 0x80) >> 7;
@@ -46,13 +45,13 @@ void bsktball_state::draw_sprites( bitmap_ind16 &bitmap, const rectangle &clipr
pic = (pic & 0x3f);
color = (color & 0x3f);
- m_gfxdecode->gfx(1)->transpen(bitmap,cliprect, pic, color, flipx, 0, sx, sy, 0);
+ m_gfxdecode->gfx(1)->transpen(bitmap, cliprect, pic, color, flipx, 0, sx, sy, 0);
}
}
uint32_t bsktball_state::screen_update_bsktball(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
{
- m_bg_tilemap->draw(screen, bitmap, cliprect, 0, 0);
+ m_bg_tilemap->draw(screen, bitmap, cliprect, 0);
draw_sprites(bitmap, cliprect);
return 0;
}