mirror of
https://github.com/holub/mame
synced 2025-06-03 19:36:26 +03:00
Fixed mistake, nw
This commit is contained in:
parent
a90b026136
commit
25a8e26d81
@ -162,20 +162,13 @@ WRITE8_MEMBER(tecmo_state::flipscreen_w)
|
|||||||
|
|
||||||
UINT32 tecmo_state::screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
|
UINT32 tecmo_state::screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
|
||||||
{
|
{
|
||||||
rectangle clip;
|
screen.priority().fill(0, cliprect);
|
||||||
clip.min_x = cliprect.min_x;
|
bitmap.fill(0x100, cliprect);
|
||||||
clip.max_x = cliprect.max_x;
|
m_bg_tilemap->draw(screen, bitmap, cliprect, 0,1);
|
||||||
|
m_fg_tilemap->draw(screen, bitmap, cliprect, 0,2);
|
||||||
|
m_tx_tilemap->draw(screen, bitmap, cliprect, 0,4);
|
||||||
|
|
||||||
for (int line = cliprect.min_y; line <= cliprect.max_y;line++)
|
m_sprgen->draw_sprites_8bit(screen,bitmap,m_gfxdecode,cliprect, m_spriteram, m_spriteram.bytes(), m_video_type, flip_screen());
|
||||||
{
|
|
||||||
clip.min_y = clip.max_y = line;
|
|
||||||
screen.priority().fill(0, clip);
|
|
||||||
bitmap.fill(0x100, clip);
|
|
||||||
m_bg_tilemap->draw(screen, bitmap, clip, 0,1);
|
|
||||||
m_fg_tilemap->draw(screen, bitmap, clip, 0,2);
|
|
||||||
m_tx_tilemap->draw(screen, bitmap, clip, 0,4);
|
|
||||||
|
|
||||||
m_sprgen->draw_sprites_8bit(screen,bitmap,m_gfxdecode,clip, m_spriteram, m_spriteram.bytes(), m_video_type, flip_screen());
|
|
||||||
}
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user