mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-24 06:59:45 -05:00
output-layer: add support for scaling buffers
This allows callers to set a destination size different from the buffer size to scale them. The DRM backend supports this. The Wayland backend doesn't yet (we'd need to wire up viewporter).
This commit is contained in:
parent
89dcecba39
commit
835208db98
5 changed files with 27 additions and 16 deletions
|
|
@ -851,8 +851,7 @@ bool wlr_output_commit_state(struct wlr_output *output,
|
|||
wl_list_insert(output->layers.prev, &layer->link);
|
||||
|
||||
// Commit layer state
|
||||
layer->x = layer_state->x;
|
||||
layer->y = layer_state->y;
|
||||
layer->dst_box = layer_state->dst_box;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue