summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2004-08-14 07:12:36 +0000
committerKeith Packard <keithp@keithp.com>2004-08-14 07:12:36 +0000
commitd558a53a6f57eecfcaadce5141fe3a08860defcb (patch)
treebc381a502acc8eb9e5e6a7f072f44386c0eeac34
parent85c2d81f299ed3444658011b7d6fb0a7ab8a6f55 (diff)
Use XLIB_SKIP_ARGB_VISUALS environment variable to disable all depth 32 visuals. Necessary to keep Flash from crashing.XORG-6_7_99_902
Must call ValidateGC/ValidatePicture on "real" GC/Picture to ensure pCompositeClip is set correctly. Need to take the composite clip from the "real" GC/Picture and turn it into the clientClip for the backing version. Adjust pixmap screen origin to account for drawable->x/y Change debugging output a bit (disabled by default)
-rw-r--r--src/OpenDis.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/OpenDis.c b/src/OpenDis.c
index f9a148d..78d56f6 100644
--- a/src/OpenDis.c
+++ b/src/OpenDis.c
@@ -570,6 +570,12 @@ XOpenDisplay (
u.vp = (xVisualType *) (((char *) u.vp) +
sz_xVisualType);
}
+ if (dp->depth == 32 && getenv ("XLIB_SKIP_ARGB_VISUALS"))
+ {
+ Xfree (dp->visuals);
+ dp->visuals = NULL;
+ dp->nvisuals = 0;
+ }
} else {
dp->visuals = (Visual *) NULL;
}