diff options
| author | Consolatis <[email protected]> | 2022-05-30 17:31:47 +0200 | 
|---|---|---|
| committer | Simon Ser <[email protected]> | 2022-05-30 16:17:31 +0000 | 
| commit | c7cc2125a642a21cea6a8098208dd147473f321a (patch) | |
| tree | 3323e1f5d2faa399c5e48cd1de851b883b307f70 | |
| parent | 3ca1c8543b25f92d0bff843468c5c4812b474d8a (diff) | |
wlr_scene: Fix scaling with default source_box
Default to texture instead of destination_box geometry.
| -rw-r--r-- | wlr_scene.c | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/wlr_scene.c b/wlr_scene.c index 676fe12..86eb2bf 100644 --- a/wlr_scene.c +++ b/wlr_scene.c @@ -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;  	} | 
