mirror of
https://github.com/holub/mame
synced 2025-07-02 00:29:37 +03:00
Fixed sprite offset in dec8.c games with karnov_sprites_device (nw)
This commit is contained in:
parent
71dc6b59c9
commit
f3b3dc9225
@ -71,8 +71,20 @@ void deco_karnovsprites_device::draw_sprites( running_machine &machine, bitmap_i
|
|||||||
y = 256 - y;
|
y = 256 - y;
|
||||||
if (machine.driver_data()->flip_screen())
|
if (machine.driver_data()->flip_screen())
|
||||||
{
|
{
|
||||||
y = 240 - y;
|
// workaround till all drivers using this device are updated to raw params
|
||||||
x = 240 - x;
|
|
||||||
|
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 (fx) fx = 0; else fx = 1;
|
||||||
if (fy) fy = 0; else fy = 1;
|
if (fy) fy = 0; else fy = 1;
|
||||||
if (extra) y = y - 16;
|
if (extra) y = y - 16;
|
||||||
|
Loading…
Reference in New Issue
Block a user