Commit 170fa858 authored by Alberts Muktupāvels's avatar Alberts Muktupāvels

geyes: fix -Wabsolute-value warnings

parent 855f3f8f
......@@ -72,8 +72,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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment