notaz.gp2x.de
/
picodrive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6138c4d
)
32x, draw, avoid some warnings
author
kub
<derkub@gmail.com>
Fri, 2 Apr 2021 20:43:06 +0000
(22:43 +0200)
committer
kub
<derkub@gmail.com>
Fri, 2 Apr 2021 20:43:06 +0000
(22:43 +0200)
pico/32x/draw.c
patch
|
blob
|
blame
|
history
diff --git
a/pico/32x/draw.c
b/pico/32x/draw.c
index
f5638b9
..
cc98a69
100644
(file)
--- 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))