summaryrefslogtreecommitdiff
path: root/kms++util/src/colorbar.cpp
diff options
context:
space:
mode:
authorJyri Sarha <jsarha@ti.com>2016-08-10 23:16:39 +0300
committerJyri Sarha <jsarha@ti.com>2016-08-11 12:20:29 +0300
commit3788242e4fdc57b1421b4721120477ebb2298e52 (patch)
treec2b0c7fe512daaee254859fa530bafd5972a9796 /kms++util/src/colorbar.cpp
parentbd5f6471e619a6ba2987bc7f66ef78a531f94d6c (diff)
Add BGR888 (BG24) and BGR565 (BG16) pixelformats.
Note colorbar does not support 24 bit modes (RGB888 or BGR888) yet.
Diffstat (limited to 'kms++util/src/colorbar.cpp')
-rw-r--r--kms++util/src/colorbar.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/kms++util/src/colorbar.cpp b/kms++util/src/colorbar.cpp
index bca8dc6..e2d257b 100644
--- a/kms++util/src/colorbar.cpp
+++ b/kms++util/src/colorbar.cpp
@@ -116,6 +116,11 @@ void draw_color_bar(IMappedFramebuffer& buf, int old_xpos, int xpos, int width)
drm_draw_color_bar_rgb565(buf, old_xpos, xpos, width);
break;
+ case PixelFormat::BGR565:
+ // XXX not right, red and blue are reversed
+ drm_draw_color_bar_rgb565(buf, old_xpos, xpos, width);
+ break;
+
case PixelFormat::XRGB8888:
drm_draw_color_bar_rgb888(buf, old_xpos, xpos, width);
break;