mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-22 12:55:58 +01:00
screencopy: Define proper destination for dmabuf copy
Leaving this empty would have it filled in with the size of the source texture, but we want the destination size. Fixes: #3758
This commit is contained in:
parent
bd18d5ccfc
commit
c8861a2865
1 changed files with 4 additions and 0 deletions
|
@ -250,6 +250,10 @@ static bool frame_dma_copy(struct wlr_screencopy_frame_v1 *frame,
|
||||||
wlr_render_pass_add_texture(pass, &(struct wlr_render_texture_options) {
|
wlr_render_pass_add_texture(pass, &(struct wlr_render_texture_options) {
|
||||||
.texture = src_tex,
|
.texture = src_tex,
|
||||||
.blend_mode = WLR_RENDER_BLEND_MODE_NONE,
|
.blend_mode = WLR_RENDER_BLEND_MODE_NONE,
|
||||||
|
.dst_box = (struct wlr_box){
|
||||||
|
.width = dst_buffer->width,
|
||||||
|
.height = dst_buffer->height,
|
||||||
|
},
|
||||||
.src_box = (struct wlr_fbox){
|
.src_box = (struct wlr_fbox){
|
||||||
.x = frame->box.x,
|
.x = frame->box.x,
|
||||||
.y = frame->box.y,
|
.y = frame->box.y,
|
||||||
|
|
Loading…
Reference in a new issue