mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-04-22 06:47:12 -04:00
Add wlr_box to crop buffer for DRM output
This commit is contained in:
parent
21fecd6015
commit
bdc3358922
3 changed files with 44 additions and 7 deletions
|
|
@ -714,6 +714,12 @@ void wlr_output_attach_buffer(struct wlr_output *output,
|
|||
output->pending.buffer = wlr_buffer_lock(buffer);
|
||||
}
|
||||
|
||||
void wlr_output_set_source_box(struct wlr_output *output,
|
||||
struct wlr_box source_box) {
|
||||
output->pending.source_box = source_box;
|
||||
output->pending.committed |= WLR_OUTPUT_STATE_SOURCE_BOX;
|
||||
}
|
||||
|
||||
void wlr_output_send_frame(struct wlr_output *output) {
|
||||
output->frame_pending = false;
|
||||
if (output->enabled) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue