From f579b073c9e766774d1f74707195a0ffc8dee910 Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Sat, 3 Jun 2023 11:33:57 +0300 Subject: [PATCH] core: Change type of DmaBufAttributes::{pitch,offset} Change it to uint32_t[] to match drmModeAddFB() API. --- src/core/graphicsbuffer.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/graphicsbuffer.h b/src/core/graphicsbuffer.h index 38a57f7af3..bcd536d91a 100644 --- a/src/core/graphicsbuffer.h +++ b/src/core/graphicsbuffer.h @@ -24,8 +24,8 @@ struct DmaBufAttributes uint64_t modifier = 0; FileDescriptor fd[4]; - int offset[4] = {0, 0, 0, 0}; - int pitch[4] = {0, 0, 0, 0}; + uint32_t offset[4] = {0, 0, 0, 0}; + uint32_t pitch[4] = {0, 0, 0, 0}; }; struct ShmAttributes