Skip to content
Myr

Merge branch 'tweak-selected-entry-large-icon-position'

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 · parents fa1bd98, e077225 · Browse files · 1 file+5 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+5 added−2 removed

  • other:+5 added−2 removed

1 file+5 added−2 removed

modified:render.c+5 added-2 removed
549 unmodified lines
550 * representation of the icon */551552 const double size = min(buf->height * 0.618, buf->width * 0.618);553 const double img_x = (buf->width - size) / 2.;554 const double img_y = first_row + (buf->height - size) / 2.;554 const double img_y_bottom = max(buf->height - first_row, 0.);555 const double img_y = max(img_y_bottom - size, 0.);556557 const double list_end = first_row + match_count * row_height;558559 LOG_DBG("img_y=%f, list_end=%f", img_y, list_end);560561 if (render_icons &&562 match->application->icon.type == ICON_SVG &&560 img_y > list_end)563 img_y > list_end + row_height)564 {565 render_svg(&match->application->icon, img_x, img_y, size, buf);566 }567
170 unmodified lines