From 49eda6745bb73e12a28ec4c92d583cec49973d57 Mon Sep 17 00:00:00 2001 From: speedie Date: Fri, 14 Jul 2023 01:34:07 +0200 Subject: [PATCH] Fix powerline cutoff when scaling an image up a lot --- libs/img.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/img.c b/libs/img.c index 32ba510..e22e99b 100644 --- a/libs/img.c +++ b/libs/img.c @@ -2,7 +2,7 @@ #if USEIMAGE void setimagesize(int width, int height) { - if (!image || hideimage || height < 5 || width < 5 || width > sp.mw) { + if (!image || hideimage || height < 5 || width < 5 || width > sp.mw - sp.bh) { return; }