Skip to content

Commit 0b4a214

Browse files
committed
kmsprint: Use fourccs, not PixelFormats
1 parent d13333e commit 0b4a214

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

utils/kmsprint.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ static string format_plane(Plane& p)
111111
(uint32_t)p.get_prop_value("CRTC_H"));
112112
}
113113

114-
string fmts = join<PixelFormat>(p.get_formats(), " ", [](PixelFormat fmt) { return pixel_format_to_fourcc_str(fmt); });
114+
string fmts = join<uint32_t>(p.get_fourccs(), " ", [](uint32_t fourcc) { return fourcc_to_str(fourcc); });
115115

116116
str += fmt::format(" ({})", fmts);
117117

@@ -122,7 +122,7 @@ static string format_fb(Framebuffer& fb)
122122
{
123123
return fmt::format("FB {} {}x{} {}",
124124
fb.id(), fb.width(), fb.height(),
125-
pixel_format_to_fourcc_str(fb.format()));
125+
fourcc_to_str(fb.fourcc()));
126126
}
127127

128128
static string format_property(const Property* prop, uint64_t val)

0 commit comments

Comments
 (0)