mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-19 20:38:08 +01:00
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 <christophe.curis@free.fr>
This commit is contained in:
committed by
Carlos R. Mafra
parent
95ee539d6d
commit
e9764aab71
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user