mirror of
https://github.com/holub/mame
synced 2025-05-23 14:19:01 +03:00
ssv: fixed background disable condition [Roberto Zandona']
This commit is contained in:
parent
2c384a80f1
commit
2ac3a1c6fc
@ -651,18 +651,15 @@ static void draw_row(running_machine *machine, bitmap_t *bitmap, const rectangle
|
|||||||
|
|
||||||
/* Get the scroll data */
|
/* Get the scroll data */
|
||||||
|
|
||||||
x = ssv_scroll[ scroll * 4 + 0 ]; // x scroll
|
x = ssv_scroll[ scroll * 4 + 0 ]; // x scroll
|
||||||
y = ssv_scroll[ scroll * 4 + 1 ]; // y scroll
|
y = ssv_scroll[ scroll * 4 + 1 ]; // y scroll
|
||||||
// ssv_scroll[ scroll * 4 + 2 ]; // Priority ?
|
// ssv_scroll[ scroll * 4 + 2 ]; // ???
|
||||||
mode = ssv_scroll[ scroll * 4 + 3 ]; // shadow, depth etc.
|
mode = ssv_scroll[ scroll * 4 + 3 ]; // layer disabled, shadow, depth etc.
|
||||||
|
|
||||||
// Priority ?
|
/* Background layer disabled */
|
||||||
if ( (ssv_scroll[ scroll * 4 + 2 ] < ssv_scroll[ 0 * 4 + 2 ]) )
|
if ((mode & 0xf000) == 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
/* How is the background layer disabled ? */
|
|
||||||
if ((mode & 0x0700) == 0) return;
|
|
||||||
|
|
||||||
shadow = (mode & 0x0800);
|
shadow = (mode & 0x0800);
|
||||||
|
|
||||||
/* Decide the actual size of the tilemap. $200 and $400 pixels
|
/* 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;
|
y += sy;
|
||||||
|
|
||||||
/* Tweak the scroll values (game specific) */
|
/* Tweak the scroll values (game specific) */
|
||||||
// x += 0;
|
// x += 0;
|
||||||
y += ((ssv_scroll[0x70/2] & 0x1ff) - (ssv_scroll[0x70/2] & 0x200) + ssv_scroll[0x6a/2] + 2);
|
y += ((ssv_scroll[0x70/2] & 0x1ff) - (ssv_scroll[0x70/2] & 0x200) + ssv_scroll[0x6a/2] + 2);
|
||||||
|
|
||||||
/* Draw the rows */
|
/* Draw the rows */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user