diff options
author | Aaron Giles <aaron@aarongiles.com> | 2013-07-26 08:15:05 +0000 |
---|---|---|
committer | Aaron Giles <aaron@aarongiles.com> | 2013-07-26 08:15:05 +0000 |
commit | ec07fb10225293829c870f2ce1ffd05732f671ca (patch) | |
tree | 5fed58d5c5d4ecf690475e91f3546036a14abdd8 /src/mame/drivers/kingdrby.c | |
parent | b5e744c477c41c28d1cefb88c622ae3a1cd4eb4e (diff) |
Fix long-standing architectural wart: the priority bitmap is no longer owned
by the tilemap system, and no longer exists globally in the machine. Instead
it is allocated per-screen for all systems. This has several side-effects:
1. Previously, the pdrawgfx* functions were already changed to take the priority
bitmap as a parameter. Now all other hand-crafted functions that mess with
the priority bitmap generally must do so as well, and have been updated.
2. Calls to the tilemap system now need to provide a screen_device. This is not
just for the priority_bitmap, but also for screen flipping, which previously
always assumed the "primary screen" when doing flipping calculations.
3. All devices that implemented tilemap-like functionality have been updated
to follow the same pattern, since they largely tend to call through to the
core tilemap system at some point.
Diffstat (limited to 'src/mame/drivers/kingdrby.c')
-rw-r--r-- | src/mame/drivers/kingdrby.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mame/drivers/kingdrby.c b/src/mame/drivers/kingdrby.c index 17004b0cbb2..e3b8e7c9d41 100644 --- a/src/mame/drivers/kingdrby.c +++ b/src/mame/drivers/kingdrby.c @@ -244,10 +244,10 @@ UINT32 kingdrby_state::screen_update_kingdrby(screen_device &screen, bitmap_ind1 clip.set(visarea.min_x, 256, 192, visarea.max_y); /*TILEMAP_DRAW_CATEGORY + TILEMAP_DRAW_OPAQUE doesn't suit well?*/ - m_sc0_tilemap->draw(bitmap, cliprect, 0,0); + m_sc0_tilemap->draw(screen, bitmap, cliprect, 0,0); draw_sprites(bitmap,cliprect); - m_sc1_tilemap->draw(bitmap, cliprect, TILEMAP_DRAW_CATEGORY(1),0); - m_sc0w_tilemap->draw(bitmap, clip, 0,0); + m_sc1_tilemap->draw(screen, bitmap, cliprect, TILEMAP_DRAW_CATEGORY(1),0); + m_sc0w_tilemap->draw(screen, bitmap, clip, 0,0); return 0; } |