Module Name: xsrc
Committed By: christos
Date: Thu Jan 31 20:41:38 UTC 2019
Modified Files:
xsrc/external/mit/xf86-video-ati/dist/src: radeon_modes.c
Log Message:
using abs on floating point values...
To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 \
xsrc/external/mit/xf86-video-ati/dist/src/radeon_modes.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: xsrc/external/mit/xf86-video-ati/dist/src/radeon_modes.c
diff -u xsrc/external/mit/xf86-video-ati/dist/src/radeon_modes.c:1.2 xsrc/external/mit/xf86-video-ati/dist/src/radeon_modes.c:1.3
--- xsrc/external/mit/xf86-video-ati/dist/src/radeon_modes.c:1.2 Mon Dec 31 19:34:52 2018
+++ xsrc/external/mit/xf86-video-ati/dist/src/radeon_modes.c Thu Jan 31 15:41:37 2019
@@ -408,7 +408,7 @@ RADEONUpdatePanelSize(xf86OutputPtr outp
float refresh =
(float)p->Clock * 1000.0 / p->HTotal / p->VTotal;
- if (abs((float)ddc->timings2[j].refresh - refresh) < 1.0) {
+ if (fabsf((float)ddc->timings2[j].refresh - refresh) < 1.0) {
/* Is this good enough? */
native_mode->PanelXRes = ddc->timings2[j].hsize;
native_mode->PanelYRes = ddc->timings2[j].vsize;