From 887fb3bf2bf6496687fcb53f95092690dae90855 Mon Sep 17 00:00:00 2001 From: Tomi Valkeinen Date: Fri, 30 Oct 2015 00:38:06 +0200 Subject: Add AR24 & AB24 formats --- libkmstest/testpat.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libkmstest/testpat.cpp') diff --git a/libkmstest/testpat.cpp b/libkmstest/testpat.cpp index 1618855..b054cf6 100644 --- a/libkmstest/testpat.cpp +++ b/libkmstest/testpat.cpp @@ -20,12 +20,14 @@ static void draw_rgb_pixel(DumbFramebuffer& buf, unsigned x, unsigned y, RGB col { switch (buf.format()) { case PixelFormat::XRGB8888: + case PixelFormat::ARGB8888: { uint32_t *p = (uint32_t*)(buf.map(0) + buf.stride(0) * y + x * 4); *p = color.rgb888(); break; } case PixelFormat::XBGR8888: + case PixelFormat::ABGR8888: { uint32_t *p = (uint32_t*)(buf.map(0) + buf.stride(0) * y + x * 4); *p = color.bgr888(); @@ -219,6 +221,8 @@ static void draw_test_pattern_impl(DumbFramebuffer& fb) switch (fb.format()) { case PixelFormat::XRGB8888: case PixelFormat::XBGR8888: + case PixelFormat::ARGB8888: + case PixelFormat::ABGR8888: case PixelFormat::RGB565: for (y = 0; y < h; y++) { for (x = 0; x < w; x++) { -- cgit v1.2.3