summaryrefslogtreecommitdiff
path: root/utils/kmsprint.cpp
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ideasonboard.com>2025-08-07 06:39:19 +0300
committerTomi Valkeinen <tomi.valkeinen@iki.fi>2025-08-07 18:33:23 +0300
commit0b4a214b48212bdf6c066912447e6a235c8d2978 (patch)
treef110aaf02401343d073d345378a2a951580bdd80 /utils/kmsprint.cpp
parentd13333ee69eeb11c99083d02a7fc741ae20ea0de (diff)
kmsprint: Use fourccs, not PixelFormats
Diffstat (limited to 'utils/kmsprint.cpp')
-rw-r--r--utils/kmsprint.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/kmsprint.cpp b/utils/kmsprint.cpp
index 919b50f..71bcb70 100644
--- a/utils/kmsprint.cpp
+++ b/utils/kmsprint.cpp
@@ -111,7 +111,7 @@ static string format_plane(Plane& p)
(uint32_t)p.get_prop_value("CRTC_H"));
}
- string fmts = join<PixelFormat>(p.get_formats(), " ", [](PixelFormat fmt) { return pixel_format_to_fourcc_str(fmt); });
+ string fmts = join<uint32_t>(p.get_fourccs(), " ", [](uint32_t fourcc) { return fourcc_to_str(fourcc); });
str += fmt::format(" ({})", fmts);
@@ -122,7 +122,7 @@ static string format_fb(Framebuffer& fb)
{
return fmt::format("FB {} {}x{} {}",
fb.id(), fb.width(), fb.height(),
- pixel_format_to_fourcc_str(fb.format()));
+ fourcc_to_str(fb.fourcc()));
}
static string format_property(const Property* prop, uint64_t val)