Trivial cleanups

This commit is contained in:
Kim Woelders 2018-02-17 12:56:43 +01:00
parent 6e3a325980
commit 988ebc96e8
3 changed files with 5 additions and 6 deletions

View File

@ -1746,7 +1746,7 @@ CB_BGAreaEvent(DItem * di, int val __UNUSED__, void *data)
num = LIST_GET_COUNT(&bg_list);
x = (num * (mini_w + 8) - w) * dd->bg_sel_sliderval / (4 * num) +
ev->xbutton.x;
x = x / (mini_w + 8);
x /= mini_w + 8;
bg = LIST_GET_BY_INDEX(Background, &bg_list, x);
if (!bg || bg == DeskBackgroundGet(DesksGetCurrent()))
break;

View File

@ -347,7 +347,7 @@ BorderWinpartCalc(const EWin * ewin, int i, int ww, int hh)
max += pad->left + pad->right;
if (h > max)
{
y = y + (((h - max) * TextclassGetJustification(tclass)) >> 10);
y += ((h - max) * TextclassGetJustification(tclass)) >> 10;
h = max;
}
if (h < min)
@ -396,8 +396,7 @@ BorderWinpartCalc(const EWin * ewin, int i, int ww, int hh)
if (w > max)
{
x = x +
(((w - max) * TextclassGetJustification(tclass)) >> 10);
x += ((w - max) * TextclassGetJustification(tclass)) >> 10;
w = max;
}
}

View File

@ -456,7 +456,7 @@ TooltipShow(ToolTip * tt, const char *text, ActionClass * ac, int x, int y)
ady = 1;
}
dist = tt->dist;
ady = ady / dy;
ady /= dy;
if (tt->win[0])
{
@ -510,7 +510,7 @@ TooltipShow(ToolTip * tt, const char *text, ActionClass * ac, int x, int y)
adx = 1;
}
dist = tt->dist;
adx = adx / dx;
adx /= dx;
if (tt->win[0])
{