From a35d57fa9088fbccd468ad095c89aba096b2494e Mon Sep 17 00:00:00 2001 From: Tomi Valkeinen Date: Wed, 5 Feb 2025 12:03:34 +0200 Subject: Use the fourcc helpers Signed-off-by: Tomi Valkeinen --- kmscube/cube-gbm.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'kmscube/cube-gbm.cpp') diff --git a/kmscube/cube-gbm.cpp b/kmscube/cube-gbm.cpp index 69930ee..5b0715a 100644 --- a/kmscube/cube-gbm.cpp +++ b/kmscube/cube-gbm.cpp @@ -133,7 +133,7 @@ public: uint32_t height = gbm_bo_get_height(bo); uint32_t stride = gbm_bo_get_stride(bo); uint32_t handle = gbm_bo_get_handle(bo).u32; - PixelFormat format = (PixelFormat)gbm_bo_get_format(bo); + PixelFormat format = fourcc_to_pixel_format(gbm_bo_get_format(bo)); vector handles{ handle }; vector strides{ stride }; -- cgit v1.2.3