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.
This commit is contained in:
Aaron Plattner 2009-02-03 13:49:19 -08:00
parent 5623c27700
commit 01879e583b

View File

@ -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 {