diff options
author | Alexander Orzechowski <alex@ozal.ski> | 2023-12-04 07:16:46 -0500 |
---|---|---|
committer | Alexander Orzechowski <alex@ozal.ski> | 2023-12-04 07:16:46 -0500 |
commit | 6287b610253d63fdb456564743b02f76919b17fb (patch) | |
tree | d55e4d55cd53d907b704f500e9818f113d992a7e | |
parent | 62169bf5ac4c7ff4d384e5fd286f07be191830d6 (diff) |
wlr_damage_ring: Fix inverted conditional
-rw-r--r-- | types/wlr_damage_ring.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/types/wlr_damage_ring.c b/types/wlr_damage_ring.c index ff6de4f4..36ea8628 100644 --- a/types/wlr_damage_ring.c +++ b/types/wlr_damage_ring.c @@ -171,7 +171,7 @@ void wlr_damage_ring_rotate_buffer(struct wlr_damage_ring *ring, // Accumulate damage from old buffers for (size_t i = 0; i < WLR_DAMAGE_RING_BUFFERS_LEN; i++) { struct wlr_damage_ring_buffer *rb = &ring->buffers[i]; - if (rb->seq < ring_buffer->seq) { + if (rb->seq > ring_buffer->seq) { pixman_region32_union(damage, damage, &rb->damage); } } |