Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[xsrc/trunk]: xsrc/external/mit/xf86-video-ati/dist/src using abs on floating...
details: https://anonhg.NetBSD.org/xsrc/rev/473aaf6d1d17
branches: trunk
changeset: 10104:473aaf6d1d17
user: christos <christos%NetBSD.org@localhost>
date: Thu Jan 31 20:41:37 2019 +0000
description:
using abs on floating point values...
diffstat:
external/mit/xf86-video-ati/dist/src/radeon_modes.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 5cfd017757cb -r 473aaf6d1d17 external/mit/xf86-video-ati/dist/src/radeon_modes.c
--- a/external/mit/xf86-video-ati/dist/src/radeon_modes.c Thu Jan 31 20:41:19 2019 +0000
+++ b/external/mit/xf86-video-ati/dist/src/radeon_modes.c Thu Jan 31 20:41:37 2019 +0000
@@ -408,7 +408,7 @@
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;
Home |
Main Index |
Thread Index |
Old Index