mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-06-13 14:32:57 -04:00
wlr_output: Make wlr_output_transformed_resolution take a state
This commit is contained in:
parent
8fdf888adf
commit
d65a3fceaf
5 changed files with 21 additions and 15 deletions
|
|
@ -330,7 +330,7 @@ static void logical_to_buffer_coords(pixman_region32_t *region, const struct ren
|
|||
|
||||
static void output_to_buffer_coords(pixman_region32_t *damage, struct wlr_output *output) {
|
||||
int width, height;
|
||||
wlr_output_transformed_resolution(output, &width, &height);
|
||||
wlr_output_transformed_resolution(output, NULL, &width, &height);
|
||||
|
||||
wlr_region_transform(damage, damage,
|
||||
wlr_output_transform_invert(output->transform), width, height);
|
||||
|
|
@ -1709,7 +1709,7 @@ static void scene_output_handle_damage(struct wl_listener *listener, void *data)
|
|||
struct wlr_output_event_damage *event = data;
|
||||
|
||||
int width, height;
|
||||
wlr_output_transformed_resolution(output, &width, &height);
|
||||
wlr_output_transformed_resolution(output, NULL, &width, &height);
|
||||
|
||||
pixman_region32_t damage;
|
||||
pixman_region32_init(&damage);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue