Skip to content

Commit

Permalink
Fixed shadow mask not being scaled (#75)
Browse files Browse the repository at this point in the history
* Fixed shadow mask not being scaled

* Also scale rects window box
  • Loading branch information
ErikReider authored Nov 11, 2024
1 parent e38922f commit d1323e6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions types/scene/wlr_scene.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand All @@ -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 = {
Expand Down

0 comments on commit d1323e6

Please sign in to comment.