From a95da16ae174ccefd4d3283b6c3ba8890a646372 Mon Sep 17 00:00:00 2001 From: kub Date: Fri, 2 Apr 2021 22:43:06 +0200 Subject: [PATCH] 32x, draw, avoid some warnings --- pico/32x/draw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pico/32x/draw.c b/pico/32x/draw.c index f5638b96..cc98a692 100644 --- a/pico/32x/draw.c +++ b/pico/32x/draw.c @@ -10,7 +10,7 @@ // BGR555 to native conversion #if defined(USE_BGR555) -#define PXCONV(t) (t) +#define PXCONV(t) ((t)&(mr|mg|mb|mp)) #define PXPRIO 0x8000 // prio in MSB #elif defined(USE_BGR565) #define PXCONV(t) (((t)&mr) | (((t)&(mg|mb)) << 1) | (((t)&mp) >> 10)) -- 2.39.5