apply last commit to wayland resizetoimageheight() function as well
This commit is contained in:
parent
c0d8adec85
commit
a90c94f69d
10
libs/img.c
10
libs/img.c
|
@ -335,7 +335,6 @@ void jumptoindex(unsigned int index) {
|
|||
}
|
||||
|
||||
void resizetoimageheight(int imagewidth, int imageheight) {
|
||||
//int ih = imageheight;
|
||||
int ih = imlib_image_get_height();
|
||||
|
||||
#if USEX
|
||||
|
@ -460,22 +459,13 @@ void resizetoimageheight_x11(int imageheight) {
|
|||
void resizetoimageheight_wl(int imageheight) {
|
||||
int omh = mh, olines = lines;
|
||||
lines = reallines;
|
||||
int wtr = 0;
|
||||
|
||||
if (lines * bh < imageheight + imagegaps * 2) {
|
||||
lines = (imageheight + imagegaps * 2) / bh;
|
||||
}
|
||||
|
||||
if (hideprompt && hideinput && hidemode && hidematchcount) {
|
||||
wtr = bh;
|
||||
}
|
||||
|
||||
get_mh();
|
||||
|
||||
if (mh - bh < imageheight + imagegaps * 2) {
|
||||
mh = (imageheight + imagegaps * 2 + bh) - wtr;
|
||||
}
|
||||
|
||||
if (omh == mh) {
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue