summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/plugins/rockboy/lcd.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/plugins/rockboy/lcd.c b/apps/plugins/rockboy/lcd.c
index c1a7a87b6b..4fb4dd2dc0 100644
--- a/apps/plugins/rockboy/lcd.c
+++ b/apps/plugins/rockboy/lcd.c
@@ -1090,7 +1090,13 @@ static void updatepalette(int i)
r = (r >> fb.cc[0].r) << fb.cc[0].l;
g = (g >> fb.cc[1].r) << fb.cc[1].l;
b = (b >> fb.cc[2].r) << fb.cc[2].l;
+
+#if LCD_PIXELFORMAT == RGB565
c = r|g|b;
+#elif LCD_PIXELFORMAT == RGB565SWAPPED
+ c = swap16(r|g|b);
+#endif
+
switch (fb.pelsize)
{