From: kub Date: Thu, 3 Apr 2025 19:08:23 +0000 (+0200) Subject: core, another layer A window rendering fix X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=634347ba6200023d3365793ce951aff482a36564;p=picodrive.git core, another layer A window rendering fix --- diff --git a/pico/draw.c b/pico/draw.c index 2d47998c..48cc8b8e 100644 --- a/pico/draw.c +++ b/pico/draw.c @@ -600,7 +600,7 @@ static void DrawWindow(int tstart, int tend, int prio, int sh, struct PicoVideo *pvid = &est->Pico->video; int tilex,ty,nametab,code,oldcode=-1,blank=-1; // The tile we know is blank int yshift,ymask; - u32 pack=0; + u32 pack=0, pal=0; u32 *hc=NULL, lflags=0; // referenced in DrawTile yshift = 4, ymask = 0x7; @@ -634,7 +634,7 @@ static void DrawWindow(int tstart, int tend, int prio, int sh, sh = (sh ? 0x80 : 0x00); // sh and low prio -> shadow for (; tilex < tend; tilex++) { - int dx, pal=0; + int dx; code = PicoMem.vram[nametab + tilex]; if ((code>>15) != prio) { @@ -652,7 +652,7 @@ static void DrawWindow(int tstart, int tend, int prio, int sh, sh = lflags; // sh and high prio -> no shadow (lflags to suppress warning) for (; tilex < tend; tilex++) { - int dx, pal=0; + int dx; code = PicoMem.vram[nametab + tilex]; if((code>>15) != prio) {