oops, fix something very stupid i did a few commits ago
This commit is contained in:
parent
86b625f766
commit
1ea6e872f0
|
@ -204,7 +204,6 @@ drawitem(int x, int y, int w)
|
||||||
if (lines > 0) {
|
if (lines > 0) {
|
||||||
int i = 0;
|
int i = 0;
|
||||||
int rx = 0;
|
int rx = 0;
|
||||||
int ew = 0;
|
|
||||||
|
|
||||||
// draw image first
|
// draw image first
|
||||||
#if USEIMAGE
|
#if USEIMAGE
|
||||||
|
@ -219,16 +218,12 @@ drawitem(int x, int y, int w)
|
||||||
rx = x;
|
rx = x;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!hidepowerline && (powerlinemode || powerlinecount)) {
|
|
||||||
ew = plw / 2;
|
|
||||||
}
|
|
||||||
|
|
||||||
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)),
|
rx + ((i / lines) * ((mw - rx) / columns)),
|
||||||
y + (((i % lines) + 1) * bh),
|
y + (((i % lines) + 1) * bh),
|
||||||
(mw - rx) / columns - (menumarginh + ew / 2)
|
(mw - rx) / columns - (columns == 1 ? menumarginh : 0)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue