stupid sprite limit bug fixed

git-svn-id: file:///home/notaz/opt/svn/PicoDrive@544 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
notaz 2008-07-14 14:59:49 +00:00
parent 5f9a0d1630
commit 4c436138e4
2 changed files with 5 additions and 3 deletions

View file

@ -958,7 +958,7 @@ void PrepareSprites(int full)
{ {
int pack; int pack;
// updates: tilecode, sx // updates: tilecode, sx
for (u=0; u < max_lines && (pack = *pd); u++, pd+=2) for (u=0; u < max_sprites && (pack = *pd); u++, pd+=2)
{ {
unsigned int *sprite; unsigned int *sprite;
int code2, sx, sy, height; int code2, sx, sy, height;
@ -1010,7 +1010,7 @@ found:;
for (u = 0; u < max_lines; u++) for (u = 0; u < max_lines; u++)
*((int *)&HighLnSpr[u][0]) = 0; *((int *)&HighLnSpr[u][0]) = 0;
for (u = 0; u < max_lines; u++) for (u = 0; u < max_sprites; u++)
{ {
unsigned int *sprite; unsigned int *sprite;
int code, code2, sx, sy, hv, height, width; int code, code2, sx, sy, hv, height, width;

View file

@ -364,7 +364,8 @@ PICO_INTERNAL_ASM void PicoVideoWrite(unsigned int a,unsigned short d)
SekCyclesBurn(32); // penalty // 488/12-8 SekCyclesBurn(32); // penalty // 488/12-8
if (SekCycleCnt>=SekCycleAim) SekEndRun(0); if (SekCycleCnt>=SekCycleAim) SekEndRun(0);
} }
elprintf(EL_ASVDP, "VDP data write: %04x {%i} #%i @ %06x", d, Pico.video.type, pvid->lwrite_cnt, SekPc); elprintf(EL_ASVDP, "VDP data write: %04x [%06x] {%i} #%i @ %06x", d, Pico.video.addr,
Pico.video.type, pvid->lwrite_cnt, SekPc);
} }
VideoWrite(d); VideoWrite(d);
} }
@ -410,6 +411,7 @@ PICO_INTERNAL_ASM void PicoVideoWrite(unsigned int a,unsigned short d)
update_irq = 1; update_irq = 1;
break; break;
case 0x05: case 0x05:
//elprintf(EL_STATUS, "spritep moved to %04x", (unsigned)(Pico.video.reg[5]&0x7f) << 9);
if (d^dold) rendstatus |= PDRAW_SPRITES_MOVED; if (d^dold) rendstatus |= PDRAW_SPRITES_MOVED;
break; break;
case 0x0c: case 0x0c: