From 7238dd9d3889c80bf9692c31c79acaf28f1d190c Mon Sep 17 00:00:00 2001 From: UjinT34 Date: Thu, 25 Jul 2024 22:55:38 +0300 Subject: [PATCH] fix buffer clearing --- src/managers/PointerManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/managers/PointerManager.cpp b/src/managers/PointerManager.cpp index 50f4f80c..ae946813 100644 --- a/src/managers/PointerManager.cpp +++ b/src/managers/PointerManager.cpp @@ -438,7 +438,7 @@ SP CPointerManager::renderHWCursorBuffer(SP(bufData); // clear buffer - memset(bufPtr, 0, buf->type() == Aquamarine::BUFFER_TYPE_DMABUF_DUMB ? std::get<2>(bufData) * buf->size.y : std::get<2>(bufData)); + memset(bufPtr, 0, buf->type() == Aquamarine::BUFFER_TYPE_DMABUF_DUMB ? std::get<2>(bufData) * buf->dmabuf().size.y : std::get<2>(bufData)); auto texBuffer = currentCursorImage.pBuffer ? currentCursorImage.pBuffer : currentCursorImage.surface->resource()->current.buffer; if (texBuffer) {