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:
e856f7a
)
enlightenment: Use 'fabs' to compute absolute value of floating point
author
Chris Michael
<cp.michael@samsung.com>
Wed, 14 Oct 2015 14:38:14 +0000
(10:38 -0400)
committer
Chris Michael
<cp.michael@samsung.com>
Wed, 14 Oct 2015 14:38:14 +0000
(10:38 -0400)
types
Signed-off-by: Chris Michael <cp.michael@samsung.com>
src/modules/wl_drm/e_mod_main.c
patch
|
blob
|
history
diff --git
a/src/modules/wl_drm/e_mod_main.c
b/src/modules/wl_drm/e_mod_main.c
index
d6d8c79
..
7a9f6aa
100644
(file)
--- a/
src/modules/wl_drm/e_mod_main.c
+++ b/
src/modules/wl_drm/e_mod_main.c
@@
-108,7
+108,7
@@
_e_mod_drm_mode_screen_find(E_Randr2_Screen *s, Ecore_Drm_Output *output)
{
diff = (100 * abs(s->config.mode.w - mode->width)) +
(100 * abs(s->config.mode.h - mode->height)) +
- abs((100 * s->config.mode.refresh) - (100 * mode->refresh));
+
f
abs((100 * s->config.mode.refresh) - (100 * mode->refresh));
if (diff < distance)
{
m = mode;