From fc722212d297a5141245beb7c8ae396606a8f221 Mon Sep 17 00:00:00 2001 From: Paulo Cesar Pereira de Andrade Date: Tue, 14 Oct 2008 15:46:52 -0300 Subject: 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. --- src/Makefile.am | 4 ---- src/smi_output.c | 4 ++++ 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/Makefile.am b/src/Makefile.am index 8db8ab6..aff239f 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -54,7 +54,3 @@ siliconmotion_drv_la_SOURCES = \ smilynx.h \ smi501_crtc.c \ smi501_output.c - -if XMODES - siliconmotion_drv_la_SOURCES += xf86cvt.c -endif 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 } -- cgit v1.2.3