From 5adb3b502ef79827b89fb11926b6198c3a57d2e6 Mon Sep 17 00:00:00 2001 From: Paulo Cesar Pereira de Andrade Date: Tue, 14 Oct 2008 14:48:42 -0300 Subject: Minor corrections for smi501 for the randr1.2 integration. Also correct printing information about MCLK in the smi501/502, it should print M2CLK (aka M1CLK o the 502) as it is the clock that controls video engine/memory. --- src/smi_output.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/smi_output.c') diff --git a/src/smi_output.c b/src/smi_output.c index d0188b7..209e2f9 100644 --- a/src/smi_output.c +++ b/src/smi_output.c @@ -49,6 +49,12 @@ SMI_OutputModeValid(xf86OutputPtr output, DisplayModePtr mode) ScrnInfoPtr pScrn = output->scrn; SMIPtr pSmi = SMIPTR(pScrn); + ENTER(); + + if (pSmi->lcd && + (mode->HDisplay > pSmi->lcdWidth || mode->VDisplay > pSmi->lcdHeight)) + RETURN(MODE_PANEL); + if (!(((mode->HDisplay == 1280) && (mode->VDisplay == 1024)) || ((mode->HDisplay == 1024) && (mode->VDisplay == 768)) || ((mode->HDisplay == 800) && (mode->VDisplay == 600)) || -- cgit v1.2.3