~sircmpwn/public-inbox

fdicons: Fix size matching for threshold icon v1 PROPOSED

Tom Lebreux
Tom Lebreux: 1
 Fix size matching for threshold icon

 1 files changed, 1 insertions(+), 1 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~sircmpwn/public-inbox/patches/9824/mbox | git am -3
Learn more about email & git

[PATCH fdicons] Fix size matching for threshold icon Export this patch

Tom Lebreux
---
 src/lookup.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lookup.c b/src/lookup.c
index 9f033420eef4..b09f66baeb5c 100644
--- a/src/lookup.c
+++ b/src/lookup.c
@@ -42,7 +42,7 @@ fd_icon_theme_dir_matches_size(
		return dir->min_size <= criteria->size &&
				dir->max_size >= criteria->size;
	case FD_ICON_TYPE_THRESHOLD:
		return (criteria->size - dir->threshold <= dir->size
		return (dir->size - dir->threshold <= criteria->size
				&& criteria->size <= dir->size + dir->threshold);
	case FD_ICON_TYPE_UNSPECIFIED:
		/* Fallthrough */
-- 
2.25.0
View this thread in the archives