mirror of
https://github.com/holub/mame
synced 2025-04-26 18:23:08 +03:00
model2.cpp: fix 2d priority over polygons (Virtua Cop level select, Dead or Alive chara select etc.) (nw)
This commit is contained in:
parent
c5cf2f7d97
commit
ac3f9079d2
@ -2607,15 +2607,15 @@ VIDEO_START_MEMBER(model2_state,model2)
|
||||
uint32_t model2_state::screen_update_model2(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect)
|
||||
{
|
||||
//logerror("--- frame ---\n");
|
||||
|
||||
int layer;
|
||||
|
||||
bitmap.fill(m_palette->pen(0), cliprect);
|
||||
m_sys24_bitmap.fill(0, cliprect);
|
||||
|
||||
segas24_tile_device *tile = machine().device<segas24_tile_device>("tile");
|
||||
tile->draw(screen, m_sys24_bitmap, cliprect, 7, 0, 0);
|
||||
tile->draw(screen, m_sys24_bitmap, cliprect, 6, 0, 0);
|
||||
tile->draw(screen, m_sys24_bitmap, cliprect, 5, 0, 0);
|
||||
tile->draw(screen, m_sys24_bitmap, cliprect, 4, 0, 0);
|
||||
|
||||
for(layer=3;layer>=0;layer--)
|
||||
tile->draw(screen, m_sys24_bitmap, cliprect, layer<<1, 0, 0);
|
||||
|
||||
copybitmap_trans(bitmap, m_sys24_bitmap, 0, 0, 0, 0, cliprect, 0);
|
||||
|
||||
@ -2629,10 +2629,9 @@ uint32_t model2_state::screen_update_model2(screen_device &screen, bitmap_rgb32
|
||||
model2_3d_frame_end( bitmap, cliprect );
|
||||
|
||||
m_sys24_bitmap.fill(0, cliprect);
|
||||
tile->draw(screen, m_sys24_bitmap, cliprect, 3, 0, 0);
|
||||
tile->draw(screen, m_sys24_bitmap, cliprect, 2, 0, 0);
|
||||
tile->draw(screen, m_sys24_bitmap, cliprect, 1, 0, 0);
|
||||
tile->draw(screen, m_sys24_bitmap, cliprect, 0, 0, 0);
|
||||
|
||||
for(layer=3;layer>=0;layer--)
|
||||
tile->draw(screen, m_sys24_bitmap, cliprect, (layer<<1) | 1, 0, 0);
|
||||
|
||||
copybitmap_trans(bitmap, m_sys24_bitmap, 0, 0, 0, 0, cliprect, 0);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user