forked from enlightenment/enlightenment
enlightenment: Use 'fabs' to compute absolute value of floating point
types Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
parent
e856f7acbb
commit
2cd6fcc3a9
|
@ -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)) +
|
diff = (100 * abs(s->config.mode.w - mode->width)) +
|
||||||
(100 * abs(s->config.mode.h - mode->height)) +
|
(100 * abs(s->config.mode.h - mode->height)) +
|
||||||
abs((100 * s->config.mode.refresh) - (100 * mode->refresh));
|
fabs((100 * s->config.mode.refresh) - (100 * mode->refresh));
|
||||||
if (diff < distance)
|
if (diff < distance)
|
||||||
{
|
{
|
||||||
m = mode;
|
m = mode;
|
||||||
|
|
Loading…
Reference in New Issue