Skip to content
Myr

render: when scaling an icon, use the font height as target height

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Daniel Eklöf · committed by Daniel Eklöf · parent 8550a3a · Browse files · 1 file+2 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:render.c+2 added-2 removed
311 unmodified lines
312 double height = cairo_image_surface_get_height(surf);313 double scale = 1.0;314315 if (height > row_height) {316 scale = (row_height - 2 * y_margin) / height;316 scale = fextents.height / height;317 LOG_DBG("%s: scaling: %f (row-height: %f, size=%fx%f)",318 match->application->title, scale, row_height, width, height);319320 width *= scale;
20 unmodified lines
341342 RsvgDimensionData dim;343 rsvg_handle_get_dimensions(svg, &dim);344345 double height = row_height - 4;345 double height = fextents.height;346 double scale = height / dim.height;347348 cairo_save(buf->cairo);349 cairo_set_operator(buf->cairo, CAIRO_OPERATOR_OVER);
44 unmodified lines