| 1 | Upstream commit replacing a deprecated librsvg function causes svg icons
|
| 2 | with a viewbox attibute to be displayed smaller than intended. This patch
|
| 3 | will be submitted upsteam.
|
| 4 | See: https://lists.sr.ht/~leon_plickat/lavalauncher/%3CCAJC6E0yjCAME1qo1tMxTMuwisqMmMSOOUn7F81x%2B8bNVpwy99g%40mail.gmail.com%3E
|
| 5 | |
| 6 | |
| 7 | @@ -212,8 +212,14 @@
|
| 8 | cairo_scale(cairo, (float)width / rsvg_width.length,
|
| 9 | (float)width / rsvg_height.length);
|
| 10 | GError *gerror = NULL;
|
| 11 | + RsvgRectangle viewport = {
|
| 12 | + .x = 0.0,
|
| 13 | + .y = 0.0,
|
| 14 | + .width = rsvg_width.length,
|
| 15 | + .height = rsvg_height.length,
|
| 16 | + };
|
| 17 | rsvg_handle_render_document(image->rsvg_handle, cairo,
|
| 18 | - &viewbox, &gerror);
|
| 19 | + &viewport, &gerror);
|
| 20 | // TODO check value of gerror
|
| 21 | }
|
| 22 | }
|