From 01879e583b0ce0d8fddc37e36d9b69fe4f1d1e72 Mon Sep 17 00:00:00 2001 From: Aaron Plattner Date: Tue, 3 Feb 2009 13:49:19 -0800 Subject: [PATCH] Don't enable XAA offscreen pixmaps with Option "XaaOffscreenPixmaps" "no". xf86IsOptionSet is rarely the right function to use for boolean options because it returns TRUE whenever the option is present, even if its value is "no", "off", "0", etc. --- hw/xfree86/xaa/xaaInitAccel.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hw/xfree86/xaa/xaaInitAccel.c b/hw/xfree86/xaa/xaaInitAccel.c index 3b397dc4a..157325e4b 100644 --- a/hw/xfree86/xaa/xaaInitAccel.c +++ b/hw/xfree86/xaa/xaaInitAccel.c @@ -528,7 +528,9 @@ XAAInitAccel(ScreenPtr pScreen, XAAInfoRecPtr infoRec) #define XAAMSG(s) do { if (serverGeneration == 1) xf86ErrorF(s); } while (0) if((infoRec->Flags & OFFSCREEN_PIXMAPS) && HaveScreenToScreenCopy && - xf86IsOptionSet(options, XAAOPT_HAS_DUMB_INVERTED_OPTION_SENSE)) + xf86ReturnOptValBool(options, + XAAOPT_HAS_DUMB_INVERTED_OPTION_SENSE, + FALSE)) { XAAMSG("\tOffscreen Pixmaps\n"); } else {