summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHenry Zhao <henry.zhao@sun.com>2006-10-17 21:17:47 -0400
committerAlex Deucher <alex@t41p.(none)>2006-10-17 21:17:47 -0400
commitdabffb8335027b60ca1fc554423e196dfb9acd6d (patch)
tree2bb177c4c1a5d1eecdd2c31631189c28cf2d4240 /src
parent831fc4a009841f68fe161b6e0db5b212d7d8079b (diff)
improved results for mergedfb xrandr refresh rates - bug 6966
Diffstat (limited to 'src')
-rw-r--r--src/radeon_mergedfb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/radeon_mergedfb.c b/src/radeon_mergedfb.c
index 94ac942..820ba4b 100644
--- a/src/radeon_mergedfb.c
+++ b/src/radeon_mergedfb.c
@@ -215,8 +215,8 @@ RADEONCopyModeNLink(ScrnInfoPtr pScrn, DisplayModePtr dest,
* extension to allow selecting among a number of modes whose merged result
* looks identical but consists of different modes for CRT1 and CRT2
*/
- mode->VRefresh = (i->Clock * 1000.0 / i->HTotal / i->VTotal) * 100 +
- (j->Clock * 1000.0 / j->HTotal / j->VTotal);
+ mode->VRefresh = (float)((i->Clock * 1000.0 / i->HTotal / i->VTotal) * 100 +
+ (j->Clock * 1000.0 / j->HTotal / j->VTotal));
mode->Clock = (int)(mode->VRefresh * 0.001 * mode->HTotal * mode->VTotal);