X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=pico%2Fdebug.c;h=7cc3c325e2496235aef0e52a9f109160b9d889fe;hb=99bdfd31b8708f8059fbc16ec8be90cb8d7c8bc3;hp=959331f8b606347445e84a2c297a30ac9bf89c26;hpb=bc3c13d3291c1f7093f89d086b7082169f3c6077;p=picodrive.git diff --git a/pico/debug.c b/pico/debug.c index 959331f..7cc3c32 100644 --- a/pico/debug.c +++ b/pico/debug.c @@ -20,13 +20,12 @@ char *PDebugMain(void) { struct PicoVideo *pv=&Pico.video; unsigned char *reg=pv->reg, r; - extern int HighPreSpr[]; int i, sprites_lo, sprites_hi; char *dstrp; sprites_lo = sprites_hi = 0; - for (i = 0; HighPreSpr[i] != 0; i+=2) - if (HighPreSpr[i+1] & 0x8000) + for (i = 0; Pico.est.HighPreSpr[i] != 0; i+=2) + if (Pico.est.HighPreSpr[i+1] & 0x8000) sprites_hi++; else sprites_lo++; @@ -203,7 +202,7 @@ void PDebugShowPalette(unsigned short *screen, int stride) if (PicoAHW & PAHW_SMS) PicoDoHighPal555M4(); else - PicoDoHighPal555(1); + PicoDoHighPal555(1, 0, &Pico.est); Pico.m.dirtyPal = 1; screen += 16*stride+8;