Fix powerline cutoff when scaling an image up a lot

This commit is contained in:
speedie 2023-07-14 01:34:07 +02:00
parent eb053eae23
commit 49eda6745b

View file

@ -2,7 +2,7 @@
#if USEIMAGE #if USEIMAGE
void setimagesize(int width, int height) { 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; return;
} }