diff options
author | Paulo Cesar Pereira de Andrade <pcpa@mandriva.com.br> | 2008-10-14 14:48:42 -0300 |
---|---|---|
committer | Paulo Cesar Pereira de Andrade <pcpa@mandriva.com.br> | 2008-10-14 14:48:42 -0300 |
commit | 5adb3b502ef79827b89fb11926b6198c3a57d2e6 (patch) | |
tree | 024233a276e8f1f91762259c4a7fc3768478e4e8 /src/smi_output.c | |
parent | 6e0837305533f940adb7a09f9b013077c0888f2d (diff) |
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.
Diffstat (limited to 'src/smi_output.c')
-rw-r--r-- | src/smi_output.c | 6 |
1 files changed, 6 insertions, 0 deletions
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)) || |