diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/db.cpp | 4 | ||||
-rw-r--r-- | tests/testpat.cpp | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/db.cpp b/tests/db.cpp index 84fb767..c72d121 100644 --- a/tests/db.cpp +++ b/tests/db.cpp @@ -106,8 +106,8 @@ int main() auto mode = conn->get_default_mode(); - auto fb1 = new DumbFramebuffer(card, mode.hdisplay, mode.vdisplay, "XR24"); - auto fb2 = new DumbFramebuffer(card, mode.hdisplay, mode.vdisplay, "XR24"); + auto fb1 = new DumbFramebuffer(card, mode.hdisplay, mode.vdisplay, PixelFormat::XRGB8888); + auto fb2 = new DumbFramebuffer(card, mode.hdisplay, mode.vdisplay, PixelFormat::XRGB8888); printf("conn %u, crtc %u, fb1 %u, fb2 %u\n", conn->id(), crtc->id(), fb1->id(), fb2->id()); diff --git a/tests/testpat.cpp b/tests/testpat.cpp index 02f195a..52e9713 100644 --- a/tests/testpat.cpp +++ b/tests/testpat.cpp @@ -30,7 +30,7 @@ int main() auto mode = conn->get_default_mode(); - auto fb = new DumbFramebuffer(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 DumbFramebuffer(card, 400, 400, "YUYV"); + auto planefb = new DumbFramebuffer(card, 400, 400, PixelFormat::YUYV); draw_test_pattern(*planefb); fbs.push_back(planefb); |