mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 15:27:46 -04:00
bugfix in sprite viewer
git-svn-id: file:///home/notaz/opt/svn/PicoDrive@546 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
parent
f579f7b891
commit
8cf22667ba
2 changed files with 4 additions and 4 deletions
|
@ -219,9 +219,9 @@ void PDebugShowSprite(unsigned short *screen, int stride, int which)
|
||||||
sprite=(int *)(Pico.vram+((table+(link<<2))&0x7ffc)); // Find sprite
|
sprite=(int *)(Pico.vram+((table+(link<<2))&0x7ffc)); // Find sprite
|
||||||
|
|
||||||
link=(sprite[0]>>16)&0x7f;
|
link=(sprite[0]>>16)&0x7f;
|
||||||
if(!link) return; // End of sprites
|
if (!link) break; // End of sprites
|
||||||
}
|
}
|
||||||
if (u == max_sprites) return;
|
if (u >= max_sprites) return;
|
||||||
|
|
||||||
fsprite = (int *)(Pico.vram+(table&0x7ffc));
|
fsprite = (int *)(Pico.vram+(table&0x7ffc));
|
||||||
oldsprite[0] = fsprite[0];
|
oldsprite[0] = fsprite[0];
|
||||||
|
@ -239,7 +239,7 @@ void PDebugShowSprite(unsigned short *screen, int stride, int which)
|
||||||
{
|
{
|
||||||
unsigned char *ps = PicoDraw2FB + DRAW2_LINE_WIDTH*y + 8;
|
unsigned char *ps = PicoDraw2FB + DRAW2_LINE_WIDTH*y + 8;
|
||||||
for (x = 0; x < 8*4; x++)
|
for (x = 0; x < 8*4; x++)
|
||||||
if (ps[x]) screen[x] = HighPal[ps[x]];
|
if (ps[x]) screen[x] = HighPal[ps[x]], ps[x] = 0;
|
||||||
screen += stride;
|
screen += stride;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -587,7 +587,7 @@ static void DrawDisplayFull(void)
|
||||||
|
|
||||||
if (HighCache2B[1]) DrawTilesFromCacheF(HighCache2B);
|
if (HighCache2B[1]) DrawTilesFromCacheF(HighCache2B);
|
||||||
if (HighCache2A[1]) DrawTilesFromCacheF(HighCache2A);
|
if (HighCache2A[1]) DrawTilesFromCacheF(HighCache2A);
|
||||||
switch (hvwin)
|
if (PicoDrawMask & PDRAW_LAYERA_ON) switch (hvwin)
|
||||||
{
|
{
|
||||||
case 4:
|
case 4:
|
||||||
// fullscreen window
|
// fullscreen window
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue