mirror of
https://github.com/holub/mame
synced 2025-07-02 08:39:21 +03:00
Fixed sprite offset in dec8.c games with karnov_sprites_device (nw)
This commit is contained in:
parent
71dc6b59c9
commit
f3b3dc9225
@ -70,9 +70,21 @@ void deco_karnovsprites_device::draw_sprites( running_machine &machine, bitmap_i
|
||||
x = 256 - x;
|
||||
y = 256 - y;
|
||||
if (machine.driver_data()->flip_screen())
|
||||
{
|
||||
// workaround till all drivers using this device are updated to raw params
|
||||
|
||||
if (cliprect.max_x == 32*8-1) //karnov.c
|
||||
{
|
||||
y = 240 - y;
|
||||
x = 240 - x;
|
||||
}
|
||||
|
||||
else //dec8.c has been updated to raw params
|
||||
{
|
||||
y = 240 + 8 - y;
|
||||
x = 240 + 74 - x;
|
||||
}
|
||||
|
||||
if (fx) fx = 0; else fx = 1;
|
||||
if (fy) fy = 0; else fy = 1;
|
||||
if (extra) y = y - 16;
|
||||
|
Loading…
Reference in New Issue
Block a user