Skip to content
Myr

icon: fix min-diff check when looking up application icons

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 8ada5c1 · Browse files · 1 file+1 added−1 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+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:icon.c+1 added-1 removed
550 unmodified lines
551552 tll_foreach(icons, icon_it) {553 struct icon_data *icon = &icon_it->item;554555 if (!is_exact_match && icon->min_diff.diff < diff)555 if (!is_exact_match && icon->min_diff.diff <= diff)556 continue;557558 size_t len = icon->file_name_len;559 char *path = icon->file_name;
138 unmodified lines