fix a weird freeze when larrow and/or rarrow is hidden and an image is

being drawn
This commit is contained in:
speedie 2023-06-11 16:49:41 +02:00
parent d7122af473
commit acdac97d75

View file

@ -320,8 +320,10 @@ int drawitem(int x, int y, int w) {
} else if (matches) { } else if (matches) {
x += inputw; x += inputw;
w = larrowWidth; if (!hidelarrow) {
x = drawlarrow(x, y, w); w = larrowWidth;
x = drawlarrow(x, y, w);
}
itemnumber = 0; itemnumber = 0;
int itemoverride = 1; int itemoverride = 1;
@ -347,8 +349,10 @@ int drawitem(int x, int y, int w) {
} }
} }
w = rarrowWidth + numberWidth + modeWidth + capsWidth + menumarginh + 2 * sp + 2 * borderwidth; if (!hiderarrow) {
x = drawrarrow(mw - w, y, w); w = rarrowWidth + numberWidth + modeWidth + capsWidth + menumarginh + 2 * sp + 2 * borderwidth;
x = drawrarrow(mw - w, y, w);
}
} }
return x; return x;