aboutsummaryrefslogtreecommitdiffstats
path: root/community/lavalauncher/fix-svg-icon-scale.patch
diff options
context:
space:
mode:
Diffstat (limited to 'community/lavalauncher/fix-svg-icon-scale.patch')
-rw-r--r--community/lavalauncher/fix-svg-icon-scale.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/community/lavalauncher/fix-svg-icon-scale.patch b/community/lavalauncher/fix-svg-icon-scale.patch
new file mode 100644
index 00000000000..bd730e89b47
--- /dev/null
+++ b/community/lavalauncher/fix-svg-icon-scale.patch
@@ -0,0 +1,22 @@
+Upstream commit replacing a deprecated librsvg function causes svg icons
+with a viewbox attibute to be displayed smaller than intended. This patch
+will be submitted upsteam.
+See: https://lists.sr.ht/~leon_plickat/lavalauncher/%3CCAJC6E0yjCAME1qo1tMxTMuwisqMmMSOOUn7F81x%2B8bNVpwy99g%40mail.gmail.com%3E
+--- lavalauncher-v2.1.1/src/types/image_t.c.orig
++++ lavalauncher-v2.1.1/src/types/image_t.c
+@@ -212,8 +212,14 @@
+ cairo_scale(cairo, (float)width / rsvg_width.length,
+ (float)width / rsvg_height.length);
+ GError *gerror = NULL;
++ RsvgRectangle viewport = {
++ .x = 0.0,
++ .y = 0.0,
++ .width = rsvg_width.length,
++ .height = rsvg_height.length,
++ };
+ rsvg_handle_render_document(image->rsvg_handle, cairo,
+- &viewbox, &gerror);
++ &viewport, &gerror);
+ // TODO check value of gerror
+ }
+ }