neo_sprite sanity checking

This commit is contained in:
dinkc64 2019-06-17 11:24:08 -04:00
parent 2dd06b5db1
commit 542b2b9c77
1 changed files with 3 additions and 1 deletions

View File

@ -2,7 +2,7 @@
UINT8* NeoZoomROM;
UINT8* NeoSpriteROM[MAX_SLOT] = { NULL, };
UINT8* NeoSpriteROM[MAX_SLOT] = { NULL, NULL, };
UINT32 nNeoTileMask[MAX_SLOT];
INT32 nNeoMaxTile[MAX_SLOT];
@ -122,6 +122,8 @@ INT32 NeoRenderSprites()
void NeoUpdateSprites(INT32 nOffset, INT32 nSize)
{
if (!NeoSpriteROMActive) return;
for (INT32 i = nOffset & ~127; i < nOffset + nSize; i += 128) {
bool bTransparent = true;
for (INT32 j = i; j < i + 128; j++) {