fix menumarginh when lines
This commit is contained in:
parent
c1058dfb00
commit
92fb7fff5c
|
@ -321,9 +321,9 @@ int drawitem(int x, int y, int w) {
|
||||||
for (item = curr; item != next; item = item->right, i++) {
|
for (item = curr; item != next; item = item->right, i++) {
|
||||||
x = drawitemtext(
|
x = drawitemtext(
|
||||||
item,
|
item,
|
||||||
rx + ((i / lines) * ((mw - rx) / columns)) + (powerlineitems ? plw : 0),
|
rx + menumarginh + ((i / lines) * ((mw - rx) / columns)) + (powerlineitems ? plw : 0),
|
||||||
y + (((i % lines) + 1) * bh),
|
y + (((i % lines) + 1) * bh),
|
||||||
(mw - rx) / columns - (powerlineitems ? 2 * plw : 0)
|
(mw - rx) / columns - (powerlineitems ? 2 * plw : 0) - (2 * menumarginh)
|
||||||
);
|
);
|
||||||
|
|
||||||
if (item == sel && itemoverride) {
|
if (item == sel && itemoverride) {
|
||||||
|
|
Loading…
Reference in a new issue