diff options
author | infirit <[email protected]> | 2014-11-26 22:11:15 +0100 |
---|---|---|
committer | infirit <[email protected]> | 2014-11-26 22:11:15 +0100 |
commit | 0856e14a2863e5cc355306f898096507f46dfec3 (patch) | |
tree | 5af225c7e9ac3ab640362abea8b010c7d9a2be1c /geyes/geyes.c | |
parent | 6a796af0b88ba9ecb0cc08284e35e424507d3a13 (diff) | |
download | mate-applets-0856e14a2863e5cc355306f898096507f46dfec3.tar.bz2 mate-applets-0856e14a2863e5cc355306f898096507f46dfec3.tar.xz |
geyes: use fabs instead of abs on float
Diffstat (limited to 'geyes/geyes.c')
-rw-r--r-- | geyes/geyes.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/geyes/geyes.c b/geyes/geyes.c index 262f63db..1652aaf3 100644 --- a/geyes/geyes.c +++ b/geyes/geyes.c @@ -105,8 +105,8 @@ calculate_pupil_xy (EyesApplet *eyes_applet, ny = y - MAX(height- eyes_applet->eye_height, 0) * yalign - eyes_applet->eye_height / 2; h = hypot (nx, ny); - if (h < 0.5 || abs (h) - < (abs (hypot (eyes_applet->eye_height / 2, eyes_applet->eye_width / 2)) - eyes_applet->wall_thickness - eyes_applet->pupil_height)) { + if (h < 0.5 || fabs (h) + < (fabs (hypot (eyes_applet->eye_height / 2, eyes_applet->eye_width / 2)) - eyes_applet->wall_thickness - eyes_applet->pupil_height)) { *pupil_x = nx + eyes_applet->eye_width / 2; *pupil_y = ny + eyes_applet->eye_height / 2; return; |