mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-23 12:45:59 +01:00
fix buffer clearing
This commit is contained in:
parent
ee4015545c
commit
7238dd9d38
1 changed files with 1 additions and 1 deletions
|
@ -438,7 +438,7 @@ SP<Aquamarine::IBuffer> CPointerManager::renderHWCursorBuffer(SP<CPointerManager
|
|||
auto bufPtr = std::get<0>(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) {
|
||||
|
|
Loading…
Reference in a new issue