From d1323e6c8b3f70de37682ef89dac9d678b2c9964 Mon Sep 17 00:00:00 2001 From: Erik Reider <35975961+ErikReider@users.noreply.github.com> Date: Mon, 11 Nov 2024 20:36:10 +0100 Subject: [PATCH] Fixed shadow mask not being scaled (#75) * Fixed shadow mask not being scaled * Also scale rects window box --- types/scene/wlr_scene.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/types/scene/wlr_scene.c b/types/scene/wlr_scene.c index 313c967..4cf3971 100644 --- a/types/scene/wlr_scene.c +++ b/types/scene/wlr_scene.c @@ -1364,6 +1364,8 @@ static void scene_entry_render(struct render_list_entry *entry, const struct ren int window_corner_radius; scene_get_next_sibling_geometry(node, &window_box, &window_corner_radius); + window_corner_radius *= data->scale; + scale_box(&window_box, data->scale); transform_output_box(&window_box, data); struct fx_render_rounded_rect_options rounded_rect_options = { @@ -1389,6 +1391,8 @@ static void scene_entry_render(struct render_list_entry *entry, const struct ren int window_corner_radius; scene_get_next_sibling_geometry(node, &window_box, &window_corner_radius); + window_corner_radius *= data->scale; + scale_box(&window_box, data->scale); transform_output_box(&window_box, data); struct fx_render_box_shadow_options shadow_options = {