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; }