From 2ac3a1c6fc0494967578814722a826235c39a080 Mon Sep 17 00:00:00 2001 From: Roberto Zandona Date: Sun, 12 Sep 2010 20:46:58 +0000 Subject: [PATCH] ssv: fixed background disable condition [Roberto Zandona'] --- src/mame/video/ssv.c | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/src/mame/video/ssv.c b/src/mame/video/ssv.c index 7c5eb03e92f..dcb4ca5427d 100644 --- a/src/mame/video/ssv.c +++ b/src/mame/video/ssv.c @@ -651,18 +651,15 @@ static void draw_row(running_machine *machine, bitmap_t *bitmap, const rectangle /* Get the scroll data */ - x = ssv_scroll[ scroll * 4 + 0 ]; // x scroll - y = ssv_scroll[ scroll * 4 + 1 ]; // y scroll - // ssv_scroll[ scroll * 4 + 2 ]; // Priority ? - mode = ssv_scroll[ scroll * 4 + 3 ]; // shadow, depth etc. + x = ssv_scroll[ scroll * 4 + 0 ]; // x scroll + y = ssv_scroll[ scroll * 4 + 1 ]; // y scroll + // ssv_scroll[ scroll * 4 + 2 ]; // ??? + mode = ssv_scroll[ scroll * 4 + 3 ]; // layer disabled, shadow, depth etc. - // Priority ? - if ( (ssv_scroll[ scroll * 4 + 2 ] < ssv_scroll[ 0 * 4 + 2 ]) ) + /* Background layer disabled */ + if ((mode & 0xf000) == 0) return; - /* How is the background layer disabled ? */ - if ((mode & 0x0700) == 0) return; - shadow = (mode & 0x0800); /* Decide the actual size of the tilemap. $200 and $400 pixels @@ -676,8 +673,8 @@ static void draw_row(running_machine *machine, bitmap_t *bitmap, const rectangle y += sy; /* Tweak the scroll values (game specific) */ - // x += 0; - y += ((ssv_scroll[0x70/2] & 0x1ff) - (ssv_scroll[0x70/2] & 0x200) + ssv_scroll[0x6a/2] + 2); + // x += 0; + y += ((ssv_scroll[0x70/2] & 0x1ff) - (ssv_scroll[0x70/2] & 0x200) + ssv_scroll[0x6a/2] + 2); /* Draw the rows */