diff options
author | Alex Deucher <alex@samba.(none)> | 2006-09-19 13:45:33 -0400 |
---|---|---|
committer | Alex Deucher <alex@samba.(none)> | 2006-09-19 13:45:33 -0400 |
commit | e742aeb28c7d9d6e75932c408bcc7c44af52e303 (patch) | |
tree | e050a4471f273f9a8593d9cf9419a1dbb8252dc3 /src/radeon_mergedfb.c | |
parent | 9c0c805704f1df1b66adc2a6b9313597ae5b86cc (diff) |
fix large negative refresh rates with mergedfb (Henry Zhao)
fixes bug 6966
Diffstat (limited to 'src/radeon_mergedfb.c')
-rw-r--r-- | src/radeon_mergedfb.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/radeon_mergedfb.c b/src/radeon_mergedfb.c index 313dda2..6f3288f 100644 --- a/src/radeon_mergedfb.c +++ b/src/radeon_mergedfb.c @@ -212,6 +212,12 @@ RADEONCopyModeNLink(ScrnInfoPtr pScrn, DisplayModePtr dest, mode->VSyncEnd += dy; mode->VTotal += dy; + /* This is needed for not generating negative refesh rates in xrandr with the + faked DotClock below + */ + if (!(mode->VRefresh)) + mode->VRefresh = mode->Clock * 1000.0 / mode->HTotal / mode->VTotal; + /* Provide a sophisticated fake DotClock in order to trick the vidmode * extension to allow selecting among a number of modes whose merged result * looks identical but consists of different modes for CRT1 and CRT2 |