]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - android/external-libkmsxx.git/blobdiff - tests/testpat.cpp
use PixelFormat all around
[android/external-libkmsxx.git] / tests / testpat.cpp
index eaf1091efd7187c349bd72085317a823d4a372e7..52e97134f729770ac3a7839c49b1ac20a1dc41b0 100644 (file)
@@ -30,7 +30,7 @@ int main()
 
                auto mode = conn->get_default_mode();
 
-               auto fb = new Framebuffer(card, mode.hdisplay, mode.vdisplay, "XR24");
+               auto fb = new DumbFramebuffer(card, mode.hdisplay, mode.vdisplay, PixelFormat::XRGB8888);
                draw_test_pattern(*fb);
                fbs.push_back(fb);
 
@@ -54,7 +54,7 @@ int main()
                }
 
                if (plane) {
-                       auto planefb = new Framebuffer(card, 400, 400, "YUYV");
+                       auto planefb = new DumbFramebuffer(card, 400, 400, PixelFormat::YUYV);
                        draw_test_pattern(*planefb);
                        fbs.push_back(planefb);