summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sway/desktop/output.c4
-rw-r--r--sway/desktop/render.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/sway/desktop/output.c b/sway/desktop/output.c
index 96ceea86..ed504bdf 100644
--- a/sway/desktop/output.c
+++ b/sway/desktop/output.c
@@ -100,7 +100,7 @@ static bool get_surface_box(struct surface_iterator_data *data,
100 } 100 }
101 101
102 struct wlr_box rotated_box; 102 struct wlr_box rotated_box;
103 wlr_box_rotated_bounds(&box, data->rotation, &rotated_box); 103 wlr_box_rotated_bounds(&rotated_box, &box, data->rotation);
104 104
105 struct wlr_box output_box = { 105 struct wlr_box output_box = {
106 .width = output->width, 106 .width = output->width,
@@ -423,7 +423,7 @@ static void damage_surface_iterator(struct sway_output *output,
423 } 423 }
424 424
425 if (whole) { 425 if (whole) {
426 wlr_box_rotated_bounds(&box, rotation, &box); 426 wlr_box_rotated_bounds(&box, &box, rotation);
427 wlr_output_damage_add_box(output->damage, &box); 427 wlr_output_damage_add_box(output->damage, &box);
428 } 428 }
429 429
diff --git a/sway/desktop/render.c b/sway/desktop/render.c
index 2afed82d..1260d85a 100644
--- a/sway/desktop/render.c
+++ b/sway/desktop/render.c
@@ -73,7 +73,7 @@ static void scissor_output(struct wlr_output *wlr_output,
73 73
74 enum wl_output_transform transform = 74 enum wl_output_transform transform =
75 wlr_output_transform_invert(wlr_output->transform); 75 wlr_output_transform_invert(wlr_output->transform);
76 wlr_box_transform(&box, transform, ow, oh, &box); 76 wlr_box_transform(&box, &box, transform, ow, oh);
77 77
78 wlr_renderer_scissor(renderer, &box); 78 wlr_renderer_scissor(renderer, &box);
79} 79}