diff options
author | Chris Michael <cp.michael@samsung.com> | 2015-10-14 10:28:38 -0400 |
---|---|---|
committer | Chris Michael <cp.michael@samsung.com> | 2015-10-14 10:28:38 -0400 |
commit | d72af795ad33a43c8a9f05df4974d8fb2160b08e (patch) | |
tree | c5a83aad776f2f9bcc6452260f4ff4613a194f1d | |
parent | 2814066c39aada30369a0cda04960eb87fdb4521 (diff) | |
download | enlightenment-d72af795ad33a43c8a9f05df4974d8fb2160b08e.tar.gz |
enlightenment: Use 'fabs' to get absolute value of floating point types
Signed-off-by: Chris Michael <cp.michael@samsung.com>
-rw-r--r-- | src/bin/e_comp_x_randr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/e_comp_x_randr.c b/src/bin/e_comp_x_randr.c index 73ff8069b1..b526b24cc7 100644 --- a/src/bin/e_comp_x_randr.c +++ b/src/bin/e_comp_x_randr.c @@ -399,7 +399,7 @@ _mode_screen_find(Ecore_X_Window root, E_Randr2_Screen *s, Ecore_X_Randr_Output diff = (100 * abs(s->config.mode.w - minfo->width)) + (100 * abs(s->config.mode.h - minfo->height)) + - abs((100 * s->config.mode.refresh) - (100 * refresh)); + fabs((100 * s->config.mode.refresh) - (100 * refresh)); if (diff < distance) { mode = modes[i]; |