mirror of
https://github.com/ekeeke/Genesis-Plus-GX.git
synced 2025-01-14 12:19:06 +01:00
[Core/VDP] fixed Mode 4 sprite Y wrapping in various screen height modes (fixes VDP Test ROM / Fantastic Dizzy)
This commit is contained in:
parent
6a0fdd10df
commit
d8ebe96491
Binary file not shown.
Binary file not shown.
Before Width: | Height: | Size: 3.2 MiB After Width: | Height: | Size: 3.2 MiB |
Binary file not shown.
Before Width: | Height: | Size: 3.3 MiB After Width: | Height: | Size: 3.3 MiB |
@ -1366,7 +1366,7 @@ void system_frame_sms(int do_skip)
|
|||||||
/* Master System & Game Gear VDP specific */
|
/* Master System & Game Gear VDP specific */
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
/* Sprites are still processed during vertical borders */
|
/* Sprites are still processed during top border */
|
||||||
if (reg[1] & 0x40)
|
if (reg[1] & 0x40)
|
||||||
{
|
{
|
||||||
render_obj(1);
|
render_obj(1);
|
||||||
|
@ -3731,8 +3731,8 @@ void parse_satb_m4(int line)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Wrap Y coordinate for sprites > 256-16 */
|
/* Wrap Y coordinate (NB: this is likely not 100% accurate and needs to be verified on real hardware) */
|
||||||
if (ypos > 240)
|
if (ypos > (bitmap.viewport.h + 16))
|
||||||
{
|
{
|
||||||
ypos -= 256;
|
ypos -= 256;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user