diff options
author | airlied <airlied@optimus.localdomain> | 2006-11-18 10:23:12 +1100 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2006-12-03 15:42:08 +1100 |
commit | 032a00d155ecdcdcab3ca0d047f552fe6b338a97 (patch) | |
tree | 8d22b9bbce4e9a9e3f47a24a51c6bcf79bb8962a /src/radeon_modes.c | |
parent | 2632ae24b3b50c69567e92611ce7c2cd2ee98baa (diff) |
make DDC function more generic
Diffstat (limited to 'src/radeon_modes.c')
-rw-r--r-- | src/radeon_modes.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/radeon_modes.c b/src/radeon_modes.c index cf8ab898..70bf1846 100644 --- a/src/radeon_modes.c +++ b/src/radeon_modes.c @@ -141,7 +141,7 @@ void RADEONSetPitch (ScrnInfoPtr pScrn) /* When no mode provided in config file, this will add all modes supported in * DDC date the pScrn->modes list */ -static DisplayModePtr RADEONDDCModes(ScrnInfoPtr pScrn) +static DisplayModePtr RADEONDDCModes(ScrnInfoPtr pScrn, xf86MonPtr ddc) { DisplayModePtr p; DisplayModePtr last = NULL; @@ -150,7 +150,6 @@ static DisplayModePtr RADEONDDCModes(ScrnInfoPtr pScrn) int count = 0; int j, tmp; char stmp[32]; - xf86MonPtr ddc = pScrn->monitor->DDC; /* Go thru detailed timing table first */ for (j = 0; j < 4; j++) { @@ -302,7 +301,7 @@ int RADEONValidateDDCModes(ScrnInfoPtr pScrn1, char **ppModeName, int maxVirtY = pScrn->virtualY; /* Collect all of the DDC modes */ - first = last = ddcModes = RADEONDDCModes(pScrn); + first = last = ddcModes = RADEONDDCModes(pScrn, pScrn->monitor->DDC); for (p = ddcModes; p; p = p->next) { |