From f3b3dc9225fc81ea755ac770f65c59c36fc56cfa Mon Sep 17 00:00:00 2001 From: Ivan Vangelista Date: Wed, 22 Jan 2014 17:54:37 +0000 Subject: [PATCH] Fixed sprite offset in dec8.c games with karnov_sprites_device (nw) --- src/mame/video/deckarn.c | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/src/mame/video/deckarn.c b/src/mame/video/deckarn.c index 9419ac2f62a..f15b44c016f 100644 --- a/src/mame/video/deckarn.c +++ b/src/mame/video/deckarn.c @@ -71,8 +71,20 @@ void deco_karnovsprites_device::draw_sprites( running_machine &machine, bitmap_i y = 256 - y; if (machine.driver_data()->flip_screen()) { - y = 240 - y; - x = 240 - x; + // 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;