aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConsolatis <40171-Consolatis@users.noreply.gitlab.freedesktop.org>2022-05-30 17:31:47 +0200
committerSimon Ser <contact@emersion.fr>2022-05-30 16:17:31 +0000
commit98c5f58a388926c3db5d5b4b9275645bccd54271 (patch)
tree3ad0996e337e4d29b7b7941df13816d117f377ed
parent988fe5bda9c11c4b2a25e998bd0329c70cc487a0 (diff)
wlr_scene: Fix scaling with default source_box
Default to texture instead of destination_box geometry.
-rw-r--r--types/scene/wlr_scene.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/types/scene/wlr_scene.c b/types/scene/wlr_scene.c
index 676fe127..86eb2bf0 100644
--- a/types/scene/wlr_scene.c
+++ b/types/scene/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;
}