kwo pushed a commit to branch master. http://git.enlightenment.org/e16/e16.git/commit/?id=988ebc96e8a299928dbd3cd10d3748691d31c0ea
commit 988ebc96e8a299928dbd3cd10d3748691d31c0ea Author: Kim Woelders <[email protected]> Date: Sat Feb 17 12:56:43 2018 +0100 Trivial cleanups --- src/backgrounds.c | 2 +- src/borders.c | 5 ++--- src/tooltips.c | 4 ++-- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/backgrounds.c b/src/backgrounds.c index b92d6755..5a3c1554 100644 --- a/src/backgrounds.c +++ b/src/backgrounds.c @@ -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; diff --git a/src/borders.c b/src/borders.c index 91614d47..edd08da0 100644 --- a/src/borders.c +++ b/src/borders.c @@ -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; } } diff --git a/src/tooltips.c b/src/tooltips.c index 86fd333a..10ba119f 100644 --- a/src/tooltips.c +++ b/src/tooltips.c @@ -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]) { --
