summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlan Hourihane <alanh@fairlite.demon.co.uk>2005-03-21 21:20:39 +0000
committerAlan Hourihane <alanh@fairlite.demon.co.uk>2005-03-21 21:20:39 +0000
commit5090c8ba6778091aa4ce24b16b058d534ba78dc7 (patch)
treed4288ed7a76c38ce80f8c07ea05b1cff2e284f28 /src
parent8bc9b0d7da5de9a3294687f450afb50452898c7d (diff)
a one line fixup to the UseDDC code
Diffstat (limited to 'src')
-rw-r--r--src/i830_driver.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/i830_driver.c b/src/i830_driver.c
index 8d611a46..dc28c50f 100644
--- a/src/i830_driver.c
+++ b/src/i830_driver.c
@@ -1565,6 +1565,8 @@ I830UseDDC(ScrnInfoPtr pScrn)
Bool ret = FALSE;
int i;
+ if (!DDC) return 0;
+
/* Now change the hsync/vrefresh values of the current monitor to
* match those of DDC */
for (i = 0; i < 4; i++) {