summaryrefslogtreecommitdiff
path: root/src/smi_output.c
diff options
context:
space:
mode:
authorPaulo Cesar Pereira de Andrade <pcpa@mandriva.com.br>2008-10-14 15:46:52 -0300
committerPaulo Cesar Pereira de Andrade <pcpa@mandriva.com.br>2008-10-14 15:46:52 -0300
commitfc722212d297a5141245beb7c8ae396606a8f221 (patch)
treef820ee743895f4e5314c55b77e6476ca23a94722 /src/smi_output.c
parent5adb3b502ef79827b89fb11926b6198c3a57d2e6 (diff)
Remove dependency on xf86cvt.c.
It actually was not added in a previous commit (due to using git reset to remake a commit, and not readding it), but now, changed only call xf86CVTMode if it is available in the X Server, otherwise, for older X Servers, a modeline should be specified in xorg.conf.
Diffstat (limited to 'src/smi_output.c')
-rw-r--r--src/smi_output.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/smi_output.c b/src/smi_output.c
index 209e2f9..43fe343 100644
--- a/src/smi_output.c
+++ b/src/smi_output.c
@@ -143,7 +143,11 @@ SMI_OutputGetModes_native(xf86OutputPtr output)
SMIPtr pSmi = SMIPTR(output->scrn);
ENTER();
+#ifdef HAVE_XMODES
RETURN(xf86CVTMode(pSmi->lcdWidth, pSmi->lcdHeight, 60.0f, FALSE, FALSE));
+#else
+ RETURN(NULL);
+#endif
}