mirror of
https://github.com/ekeeke/Genesis-Plus-GX.git
synced 2024-11-13 06:15:07 +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 */
|
||||
else
|
||||
{
|
||||
/* Sprites are still processed during vertical borders */
|
||||
/* Sprites are still processed during top border */
|
||||
if (reg[1] & 0x40)
|
||||
{
|
||||
render_obj(1);
|
||||
|
@ -3731,8 +3731,8 @@ void parse_satb_m4(int line)
|
||||
break;
|
||||
}
|
||||
|
||||
/* Wrap Y coordinate for sprites > 256-16 */
|
||||
if (ypos > 240)
|
||||
/* Wrap Y coordinate (NB: this is likely not 100% accurate and needs to be verified on real hardware) */
|
||||
if (ypos > (bitmap.viewport.h + 16))
|
||||
{
|
||||
ypos -= 256;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user