Commit 6c9b42f7 authored by EkeEke's avatar EkeEke
Browse files

[Core/VDP] fixed Master System II extended video modes sprite parsing (fixes Mega Man 2 demo)

parent 862e44f0
......@@ -100,6 +100,7 @@ Genesis Plus GX 1.7.5 (xx/xx/xxxx) (Eke-Eke)
* fixed alpha channel for 15-bit (RGB555) and 32-bit (RGB888) color support
* fixed register #10 state on VDPreset (fixes GG Terminator 2: Judgment Day)
* fixed Mode 1 rendering (TMS99xx "text" mode)
* fixed Master System II extended video modes sprite parsing (fixes Mega Man 2 demo)
* fixed Game Gear display rendering regression when left/right borders were disabled
* fixed 68k cycles delay on invalid VRAM writes (fixes "Microcosm" intro loop)
* optimized tile caching
......
No preview for this file type
No preview for this file type
/***************************************************************************************
* Genesis Plus
* Video Display Processor (video output rendering)
* Video Display Processor (pixel output rendering)
*
* Support for all TMS99xx modes, Mode 4 & Mode 5 rendering
*
* Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003 Charles Mac Donald (original code)
* Copyright (C) 2007-2015 Eke-Eke (Genesis Plus GX)
* Copyright (C) 2007-2016 Eke-Eke (Genesis Plus GX)
*
* Redistribution and use of this code or any derivative works are permitted
* provided that the following conditions are met:
......@@ -3725,14 +3725,14 @@ void parse_satb_m4(int line)
/* Sprite Y position */
ypos = st[i];
/* Check end of sprite list marker */
if (ypos == (bitmap.viewport.h + 16))
/* Check end of sprite list marker (no effect in extended modes) */
if ((ypos == 208) && (bitmap.viewport.h == 192))
{
break;
}
/* Wrap Y coordinate for sprites > 256-16 */
if (ypos >= 240)
if (ypos > 240)
{
ypos -= 256;
}
......
/***************************************************************************************
* Genesis Plus
* Video Display Processor (video output rendering)
* Video Display Processor (pixel output rendering)
*
* Support for all TMS99xx modes, Mode 4 & Mode 5 rendering
*
* Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003 Charles Mac Donald (original code)
* Copyright (C) 2007-2015 Eke-Eke (Genesis Plus GX)
* Copyright (C) 2007-2016 Eke-Eke (Genesis Plus GX)
*
* Redistribution and use of this code or any derivative works are permitted
* provided that the following conditions are met:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment