Add missing BGR color formats to draw_test_pattern_part().
authorJyri Sarha <jsarha@ti.com>
Mon, 15 Aug 2016 13:12:49 +0000 (16:12 +0300)
committerJyri Sarha <jsarha@ti.com>
Mon, 15 Aug 2016 13:12:49 +0000 (16:12 +0300)
kms++util/src/testpat.cpp

index 1297e61730ec18d8d08a0c8c52b280fb7c20ef31..519f960ec700bc8470404c9d98f22dc8e27e135b 100644 (file)
@@ -105,7 +105,9 @@ static void draw_test_pattern_part(IMappedFramebuffer& fb, unsigned start_y, uns
        case PixelFormat::ARGB8888:
        case PixelFormat::ABGR8888:
        case PixelFormat::RGB888:
+       case PixelFormat::BGR888:
        case PixelFormat::RGB565:
+       case PixelFormat::BGR565:
                for (y = start_y; y < end_y; y++) {
                        for (x = 0; x < w; x++) {
                                RGB pixel = get_test_pattern_pixel(fb, x, y);