summaryrefslogtreecommitdiff
path: root/libkmstest/testpat.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libkmstest/testpat.cpp')
-rw-r--r--libkmstest/testpat.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/libkmstest/testpat.cpp b/libkmstest/testpat.cpp
index c8188d8..f621b91 100644
--- a/libkmstest/testpat.cpp
+++ b/libkmstest/testpat.cpp
@@ -24,7 +24,13 @@ static void draw_pixel(DumbFramebuffer& buf, unsigned x, unsigned y, RGB color)
case PixelFormat::XRGB8888:
{
uint32_t *p = (uint32_t*)(buf.map(0) + buf.stride(0) * y + x * 4);
- *p = color.raw;
+ *p = color.rgb888();
+ break;
+ }
+ case PixelFormat::XBGR8888:
+ {
+ uint32_t *p = (uint32_t*)(buf.map(0) + buf.stride(0) * y + x * 4);
+ *p = color.bgr888();
break;
}
case PixelFormat::RGB565: