card: fix compile warning
[android/external-libkmsxx.git] / kms++util / src / colorbar.cpp
index bca8dc6c57a3a0b71eab90f378382e0b0d4b000b..e2d257b2cbcc380f8c611861395a910019e7f998 100644 (file)
@@ -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;