diff options
author | Tom Englund <[email protected]> | 2024-08-18 10:23:27 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2024-08-18 09:23:27 +0100 |
commit | 1006663b6eaa55149e9a21aa8a34e41c85eb08ca (patch) | |
tree | 48e32d44be379a2d5b9e2fefd0b54645630b88d6 /src/protocols | |
parent | b2a18aa80a29ecf400ae1e8c964d4313f7223bf5 (diff) | |
download | Hyprland-1006663b6eaa55149e9a21aa8a34e41c85eb08ca.tar.gz Hyprland-1006663b6eaa55149e9a21aa8a34e41c85eb08ca.zip |
shm: align size to stride (#7383)
calculate the size to the stride we got to better align it.
Diffstat (limited to 'src/protocols')
-rw-r--r-- | src/protocols/core/Shm.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/protocols/core/Shm.cpp b/src/protocols/core/Shm.cpp index 99459d9a..9996a607 100644 --- a/src/protocols/core/Shm.cpp +++ b/src/protocols/core/Shm.cpp @@ -63,7 +63,7 @@ Aquamarine::SSHMAttrs CWLSHMBuffer::shm() { } std::tuple<uint8_t*, uint32_t, size_t> CWLSHMBuffer::beginDataPtr(uint32_t flags) { - return {(uint8_t*)pool->data + offset, fmt, size.x * size.y * 4}; + return {(uint8_t*)pool->data + offset, fmt, stride * size.y}; } void CWLSHMBuffer::endDataPtr() { |