From e9764aab71835608054589013957635c0e0616e4 Mon Sep 17 00:00:00 2001 From: Christophe CURIS Date: Sun, 16 Jun 2013 21:51:01 +0200 Subject: [PATCH] wmaker: Changed math on floating point by integer operation For this case we happen to already have the same variable as integer type, so it is better to use them directly for computation. Please note that the floating point variables do not contain more precision in this use case, otherwise the change would not be transparent. Signed-off-by: Christophe CURIS --- src/misc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/misc.c b/src/misc.c index b2f40f6b..4c4eacaf 100644 --- a/src/misc.c +++ b/src/misc.c @@ -190,7 +190,7 @@ void SlideWindows(Window *wins[], int n, int from_x, int from_y, int to_x, int t dx = (float) dx_int; dy = (float) dy_int; - if (fabs(dx) > fabs(dy)) { + if (abs(dx_int) > abs(dy_int)) { dx_is_bigger = 1; } -- 2.11.4.GIT