Add wlr_box to crop buffer for DRM output

This commit is contained in:
Christian Kröner 2021-06-26 17:03:24 +02:00
parent 21fecd6015
commit bdc3358922
3 changed files with 44 additions and 7 deletions

View file

@ -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) {