mirror of
https://github.com/holub/mame
synced 2025-06-06 21:03:47 +03:00
chanbara: no need to check attr & 0x08
This commit is contained in:
parent
e5c0f78931
commit
366aaf99a9
@ -186,8 +186,8 @@ void chanbara_state::draw_sprites(screen_device &screen, bitmap_ind16& bitmap, c
|
|||||||
int sx = (240 - m_spriteram[offs + 3]) & 0xff;
|
int sx = (240 - m_spriteram[offs + 3]) & 0xff;
|
||||||
int sy = (240 - m_spriteram[offs + 2]) & 0xff;
|
int sy = (240 - m_spriteram[offs + 2]) & 0xff;
|
||||||
|
|
||||||
// hidden or invalid?
|
// invalid?
|
||||||
if (~attr & 0x01 || attr & 0x08)
|
if (~attr & 0x01)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (flip_screen())
|
if (flip_screen())
|
||||||
@ -205,14 +205,17 @@ void chanbara_state::draw_sprites(screen_device &screen, bitmap_ind16& bitmap, c
|
|||||||
|
|
||||||
if (attr & 0x10)
|
if (attr & 0x10)
|
||||||
{
|
{
|
||||||
|
// 16x32
|
||||||
|
code &= ~1;
|
||||||
if (flip_screen())
|
if (flip_screen())
|
||||||
sy += 16;
|
sy += 16;
|
||||||
|
|
||||||
m_gfxdecode->gfx(1)->prio_transpen(bitmap, cliprect, code + (flipy ^ 1), color, flipx, flipy, sx, sy, screen.priority(), pri_mask, 0);
|
m_gfxdecode->gfx(1)->prio_transpen(bitmap, cliprect, code | (flipy ^ 1), color, flipx, flipy, sx, sy, screen.priority(), pri_mask, 0);
|
||||||
m_gfxdecode->gfx(1)->prio_transpen(bitmap, cliprect, code + flipy, color, flipx, flipy, sx, sy - 16, screen.priority(), pri_mask, 0);
|
m_gfxdecode->gfx(1)->prio_transpen(bitmap, cliprect, code | flipy, color, flipx, flipy, sx, sy - 16, screen.priority(), pri_mask, 0);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
// 16x16
|
||||||
m_gfxdecode->gfx(1)->prio_transpen(bitmap, cliprect, code, color, flipx, flipy, sx, sy, screen.priority(), pri_mask, 0);
|
m_gfxdecode->gfx(1)->prio_transpen(bitmap, cliprect, code, color, flipx, flipy, sx, sy, screen.priority(), pri_mask, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user