aboutsummaryrefslogtreecommitdiff
path: root/sway/desktop/render.c
diff options
context:
space:
mode:
authorKirill Primak <vyivel@eclair.cafe>2022-11-11 18:29:04 +0300
committerGitHub <noreply@github.com>2022-11-11 16:29:04 +0100
commit7862fa670e208b4871c868f9b0e2a19b46a30e63 (patch)
treeaf04922421932a75bbac9bab84330a2b91b788be /sway/desktop/render.c
parentdcd2076f3854f4bb0018b6a47781dc48a55393b0 (diff)
Use wlr_damage_ring
wlr_output_damage is to be replaced with wlr_damage_ring, so use that.
Diffstat (limited to 'sway/desktop/render.c')
-rw-r--r--sway/desktop/render.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sway/desktop/render.c b/sway/desktop/render.c
index ed9ad490..efa3a0d9 100644
--- a/sway/desktop/render.c
+++ b/sway/desktop/render.c
@@ -8,8 +8,8 @@
#include <wlr/render/gles2.h>
#include <wlr/render/wlr_renderer.h>
#include <wlr/types/wlr_buffer.h>
+#include <wlr/types/wlr_damage_ring.h>
#include <wlr/types/wlr_matrix.h>
-#include <wlr/types/wlr_output_damage.h>
#include <wlr/types/wlr_output_layout.h>
#include <wlr/types/wlr_output.h>
#include <wlr/types/wlr_compositor.h>
@@ -1186,7 +1186,7 @@ renderer_end:
enum wl_output_transform transform =
wlr_output_transform_invert(wlr_output->transform);
- wlr_region_transform(&frame_damage, &output->damage->current,
+ wlr_region_transform(&frame_damage, &output->damage_ring.current,
transform, width, height);
if (debug.damage != DAMAGE_DEFAULT) {
@@ -1200,5 +1200,7 @@ renderer_end:
if (!wlr_output_commit(wlr_output)) {
return;
}
+
+ wlr_damage_ring_rotate(&output->damage_ring);
output->last_frame = *when;
}