mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-31 22:25:21 -04:00
wlr_scene: Fix scaling with default source_box
Default to texture instead of destination_box geometry.
This commit is contained in:
parent
988fe5bda9
commit
98c5f58a38
1 changed files with 2 additions and 2 deletions
|
|
@ -801,8 +801,8 @@ static void render_texture(struct wlr_output *output,
|
|||
|
||||
struct wlr_fbox default_src_box = {0};
|
||||
if (wlr_fbox_empty(src_box)) {
|
||||
default_src_box.width = dst_box->width;
|
||||
default_src_box.height = dst_box->height;
|
||||
default_src_box.width = texture->width;
|
||||
default_src_box.height = texture->height;
|
||||
src_box = &default_src_box;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue