Fixes per wlroots#1441

This commit is contained in:
Drew DeVault 2018-12-22 08:53:05 -05:00
parent 0d3cf36c85
commit 788b715776
2 changed files with 3 additions and 3 deletions

View file

@ -100,7 +100,7 @@ static bool get_surface_box(struct surface_iterator_data *data,
} }
struct wlr_box rotated_box; struct wlr_box rotated_box;
wlr_box_rotated_bounds(&box, data->rotation, &rotated_box); wlr_box_rotated_bounds(&rotated_box, &box, data->rotation);
struct wlr_box output_box = { struct wlr_box output_box = {
.width = output->width, .width = output->width,
@ -423,7 +423,7 @@ static void damage_surface_iterator(struct sway_output *output,
} }
if (whole) { if (whole) {
wlr_box_rotated_bounds(&box, rotation, &box); wlr_box_rotated_bounds(&box, &box, rotation);
wlr_output_damage_add_box(output->damage, &box); wlr_output_damage_add_box(output->damage, &box);
} }

View file

@ -73,7 +73,7 @@ static void scissor_output(struct wlr_output *wlr_output,
enum wl_output_transform transform = enum wl_output_transform transform =
wlr_output_transform_invert(wlr_output->transform); wlr_output_transform_invert(wlr_output->transform);
wlr_box_transform(&box, transform, ow, oh, &box); wlr_box_transform(&box, &box, transform, ow, oh);
wlr_renderer_scissor(renderer, &box); wlr_renderer_scissor(renderer, &box);
} }