summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEgbert Eich <eich@suse.de>2004-07-30 21:39:20 +0000
committerEgbert Eich <eich@suse.de>2004-07-30 21:39:20 +0000
commit63a152f7812d0981e3e7aa41a42e59cd0c3e50dc (patch)
treea03db8310722526b7b6aba745f3242b612dc3993
parent0ba15599466ddb644728c6b68e64e05b1317ac2e (diff)
removing some unnecessary restricitons on the allowed visuals.
-rw-r--r--hw/xfree86/common/xf86Helper.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/hw/xfree86/common/xf86Helper.c b/hw/xfree86/common/xf86Helper.c
index 076a97f16..41fe82b70 100644
--- a/hw/xfree86/common/xf86Helper.c
+++ b/hw/xfree86/common/xf86Helper.c
@@ -902,25 +902,6 @@ xf86SetDefaultVisual(ScrnInfoPtr scrp, int visual)
case DirectColor:
xf86DrvMsg(scrp->scrnIndex, visualFrom, "Default visual is %s\n",
xf86VisualNames[scrp->defaultVisual]);
- /* Check if the visual is valid for the depth */
- if (scrp->depth == 1 && scrp->defaultVisual != StaticGray)
- bad = TRUE;
-#if 0
- else if (scrp->depth == 4 &&
- (scrp->defaultVisual == TrueColor ||
- scrp->defaultVisual == DirectColor))
- bad = TRUE;
-#endif
- else if (scrp->depth > MAX_PSEUDO_DEPTH &&
- scrp->defaultVisual != TrueColor &&
- scrp->defaultVisual != DirectColor)
- bad = TRUE;
- if (bad) {
- xf86DrvMsg(scrp->scrnIndex, X_ERROR, "Selected default "
- "visual (%s) is not valid for depth %d\n",
- xf86VisualNames[scrp->defaultVisual], scrp->depth);
- return FALSE;
- } else
return TRUE;
default: