fix height issue with image

This commit is contained in:
speedie 2023-04-01 14:59:52 +02:00
parent 3332b6178d
commit 37a48da018

View file

@ -351,10 +351,10 @@ resizetoimageheight(int imageheight)
if (hideprompt && hideinput && hidemode && hidematchcount) if (hideprompt && hideinput && hidemode && hidematchcount)
wtr = bh; wtr = bh;
mh = (lines + 1) * bh - wtr; mh = MAX((lines + 1) * bh, ((lines + 1) * bh) - wtr);
if (mh - bh < imageheight + imagegaps * 2) if (mh - bh < imageheight + imagegaps * 2)
mh = imageheight + imagegaps * 2 + bh - wtr; mh = (imageheight + imagegaps * 2 + bh) - wtr;
if (!win || omh == mh) if (!win || omh == mh)
return; return;