From: kub Date: Fri, 2 Apr 2021 20:43:06 +0000 (+0200) Subject: 32x, draw, avoid some warnings X-Git-Tag: v2.00~562 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a95da16ae174ccefd4d3283b6c3ba8890a646372;p=picodrive.git 32x, draw, avoid some warnings --- 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))