mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-15 06:05:59 +01:00
f
This commit is contained in:
parent
928e7dd712
commit
b08bab01b1
1 changed files with 4 additions and 2 deletions
|
@ -460,8 +460,10 @@ SP<Aquamarine::IBuffer> CPointerManager::renderHWCursorBuffer(SP<CPointerManager
|
|||
|
||||
if (shmBuffer.data())
|
||||
texData = shmBuffer;
|
||||
else
|
||||
texData = {texture->m_vSize.x * 4 * texture->m_vSize.y, 0};
|
||||
else {
|
||||
texData.resize(texture->m_vSize.x * 4 * texture->m_vSize.y);
|
||||
memset(texData.data(), 0x00, texData.size());
|
||||
}
|
||||
|
||||
if (flipRB) {
|
||||
for (size_t i = 0; i < shmBuffer.size(); i += 4) {
|
||||
|
|
Loading…
Reference in a new issue