dix: Lower backStorage to a bit instead of a pointer
Reviewed-by: Julien Cristau <jcristau@debian.org> Signed-off-by: Adam Jackson <ajax@redhat.com>
This commit is contained in:
parent
322ba42c23
commit
81d76a835b
|
@ -119,12 +119,12 @@ compChangeWindowAttributes(WindowPtr pWin, unsigned long mask)
|
|||
pScreen->backingStoreSupport != NotUseful) {
|
||||
if (pWin->backingStore != NotUseful && !pWin->backStorage) {
|
||||
compRedirectWindow(serverClient, pWin, CompositeRedirectAutomatic);
|
||||
pWin->backStorage = (void *) (intptr_t) 1;
|
||||
pWin->backStorage = TRUE;
|
||||
}
|
||||
else if (pWin->backingStore == NotUseful && pWin->backStorage) {
|
||||
compUnredirectWindow(serverClient, pWin,
|
||||
CompositeRedirectAutomatic);
|
||||
pWin->backStorage = NULL;
|
||||
pWin->backStorage = FALSE;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -362,7 +362,7 @@ SetWindowToDefaults(WindowPtr pWin)
|
|||
pWin->cursorIsNone = TRUE;
|
||||
|
||||
pWin->backingStore = NotUseful;
|
||||
pWin->backStorage = (void *) NULL;
|
||||
pWin->backStorage = 0;
|
||||
|
||||
pWin->mapped = FALSE; /* off */
|
||||
pWin->realized = FALSE; /* off */
|
||||
|
|
|
@ -144,12 +144,12 @@ typedef struct _Window {
|
|||
Mask eventMask; /* mask from the creating client */
|
||||
PixUnion background;
|
||||
PixUnion border;
|
||||
void *backStorage; /* null when BS disabled */
|
||||
WindowOptPtr optional;
|
||||
unsigned backgroundState:2; /* None, Relative, Pixel, Pixmap */
|
||||
unsigned borderIsPixel:1;
|
||||
unsigned cursorIsNone:1; /* else real cursor (might inherit) */
|
||||
unsigned backingStore:2;
|
||||
unsigned backStorage:1; /* if bs is allocated */
|
||||
unsigned saveUnder:1;
|
||||
unsigned bitGravity:4;
|
||||
unsigned winGravity:4;
|
||||
|
|
|
@ -143,7 +143,7 @@ miHandleExposures(DrawablePtr pSrcDrawable, DrawablePtr pDstDrawable,
|
|||
if (!pGC->graphicsExposures &&
|
||||
(pDstDrawable->type == DRAWABLE_PIXMAP) &&
|
||||
((pSrcDrawable->type == DRAWABLE_PIXMAP) ||
|
||||
(((WindowPtr) pSrcDrawable)->backStorage == NULL)))
|
||||
(((WindowPtr) pSrcDrawable)->backStorage == 0)))
|
||||
return NULL;
|
||||
|
||||
srcBox.x1 = srcx;
|
||||
|
|
Loading…
Reference in New Issue