X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=pico%2F32x%2Fdraw.c;h=2287e24665f0a464fc4b5e3304dcc51ae16df235;hb=8b9dbcde387f567a154e15ca14a0c6e5b3efa3ef;hp=3e007ae0832607acfe39a6f2a49af0475d31e41c;hpb=98a27142346e05a4cef4fe89469bc09d5560edc1;p=picodrive.git diff --git a/pico/32x/draw.c b/pico/32x/draw.c index 3e007ae..2287e24 100644 --- a/pico/32x/draw.c +++ b/pico/32x/draw.c @@ -58,7 +58,7 @@ static void convert_pal555(int invert_prio) unsigned short t; \ int i; \ for (i = 320; i > 0; i--, pd++, p32x++, pmd++) { \ - t = pal[*(unsigned char *)((long)p32x ^ 1)]; \ + t = pal[*(unsigned char *)((uintptr_t)p32x ^ 1)]; \ if ((t & 0x20) || (*pmd & 0x3f) == mdbg) \ *pd = t; \ else \ @@ -96,7 +96,7 @@ void FinalizeLine32xRGB555(int sh, int line, struct PicoEState *est) if ((Pico32x.vdp_regs[0] & P32XV_Mx) == 0 || // 32x blanking // XXX: how is 32col mode hadled by real hardware? !(Pico.video.reg[12] & 1) || // 32col mode - !(PicoDrawMask & PDRAW_32X_ON)) + (Pico.video.debug_p & PVD_KILL_32X)) { return; } @@ -292,7 +292,7 @@ void PicoDraw32xLayerMdOnly(int offs, int lines) for (l = 0; l < lines; l++) { if (have_scan) { PicoScan32xBegin(l + offs); - dst = Pico.est.DrawLineDest + poffs; + dst = (unsigned short *)Pico.est.DrawLineDest + poffs; } for (p = 0; p < plen; p += 4) { dst[p + 0] = pal[*pmd++];