projects
/
platform
/
upstream
/
enlightenment.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2814066
)
enlightenment: Use 'fabs' to get absolute value of floating point types
author
Chris Michael
<cp.michael@samsung.com>
Wed, 14 Oct 2015 14:28:38 +0000
(10:28 -0400)
committer
Chris Michael
<cp.michael@samsung.com>
Wed, 14 Oct 2015 14:28:38 +0000
(10:28 -0400)
Signed-off-by: Chris Michael <cp.michael@samsung.com>
src/bin/e_comp_x_randr.c
patch
|
blob
|
history
diff --git
a/src/bin/e_comp_x_randr.c
b/src/bin/e_comp_x_randr.c
index
73ff806
..
b526b24
100644
(file)
--- 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));
+
f
abs((100 * s->config.mode.refresh) - (100 * refresh));
if (diff < distance)
{
mode = modes[i];