summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@iki.fi>2015-10-03 23:29:18 +0300
committerTomi Valkeinen <tomi.valkeinen@iki.fi>2015-10-04 10:21:56 +0300
commit8a991ee6b675d18739557e004ce993fa090ef0b5 (patch)
tree3ec4413fc64a6cc9bcaa3c6bd1467c18a166fad3 /tests
parent2c0f9b2d85b71b916ef5c53d0b8c814167ae8525 (diff)
use PixelFormat all around
Diffstat (limited to 'tests')
-rw-r--r--tests/db.cpp4
-rw-r--r--tests/testpat.cpp4
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);