From 634347ba6200023d3365793ce951aff482a36564 Mon Sep 17 00:00:00 2001 From: kub Date: Thu, 3 Apr 2025 21:08:23 +0200 Subject: [PATCH] core, another layer A window rendering fix --- pico/draw.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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) { -- 2.39.5