summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/smi_output.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/smi_output.c b/src/smi_output.c
index 43fe343..b26530c 100644
--- a/src/smi_output.c
+++ b/src/smi_output.c
@@ -51,8 +51,11 @@ SMI_OutputModeValid(xf86OutputPtr output, DisplayModePtr mode)
ENTER();
- if (pSmi->lcd &&
- (mode->HDisplay > pSmi->lcdWidth || mode->VDisplay > pSmi->lcdHeight))
+ /* FIXME LVDS currently have fixed height. But allow external crtc to
+ * have a smaller or larger size, even if only one monitor section
+ * exists in xorg.conf. */
+ if (output->name && strcmp(output->name, "LVDS") == 0 &&
+ (mode->HDisplay > pSmi->lcdWidth || mode->VDisplay != pSmi->lcdHeight))
RETURN(MODE_PANEL);
if (!(((mode->HDisplay == 1280) && (mode->VDisplay == 1024)) ||