diff options
| author | Tomi Valkeinen <tomi.valkeinen@ideasonboard.com> | 2025-02-05 12:03:34 +0200 |
|---|---|---|
| committer | Tomi Valkeinen <tomi.valkeinen@ideasonboard.com> | 2025-03-26 15:44:00 +0200 |
| commit | a35d57fa9088fbccd468ad095c89aba096b2494e (patch) | |
| tree | 24b73249e7e741e36ed1b03a9b92461fd36bfa72 /kmscube/cube-gbm.cpp | |
| parent | 1936a703bf1a3b27db9bb4d503b861f6d1fa2e74 (diff) | |
Use the fourcc helpers
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Diffstat (limited to 'kmscube/cube-gbm.cpp')
| -rw-r--r-- | kmscube/cube-gbm.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<uint32_t> handles{ handle }; vector<uint32_t> strides{ stride }; |
