Skip to content
Myr

render: add render_icon_size() function; returns the icon size to use

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 8688c60 · Browse files · 2 files+10 added−0 removed
This commit

State

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

Diff stats

2 files+10 added−0 removed

  • other:+10 added−0 removed

2 files+10 added−0 removed

modified:render.c+8 added
481 unmodified lines
482483 if (icon->svg == NULL) {484 if (!icon_from_svg(icon, icon->path))485 return;486 LOG_DBG("%s", icon->path);487 }488489#if defined(FUZZEL_ENABLE_SVG_LIBRSVG)490 render_svg_librsvg(icon, x, y, size, buf);
78 unmodified lines
569570 if (icon->png == NULL) {571 if (!icon_from_png(icon, icon->path))572 return;573 LOG_DBG("%s", icon->path);574 }575576#if defined(FUZZEL_ENABLE_PNG_LIBPNG)577 render_png_libpng(icon, x, y, size, buf);
231 unmodified lines
809810 return true;811}812813int814render_icon_size(const struct render *render)815{816 return render->icon_height;817}818819void820render_destroy(struct render *render)821{822 if (render == NULL)
5 unmodified lines
modified:render.h+2 added
26 unmodified lines
2728void render_match_list(29 const struct render *render, struct buffer *buf,30 const struct prompt *prompt, const struct matches *matches);3132int render_icon_size(const struct render *render);