properly initialise the optional member

This commit is contained in:
Ben Byer 2008-04-18 23:02:22 -07:00
parent fcebaa8496
commit 1695fa6268
2 changed files with 2 additions and 0 deletions

View file

@ -3689,6 +3689,7 @@ MakeWindowOptional (WindowPtr pWin)
optional->userProps = NULL;
optional->backingBitPlanes = ~0L;
optional->backingPixel = 0;
optional->actualised = 0;
#ifdef SHAPE
optional->boundingShape = NULL;
optional->clipShape = NULL;

View file

@ -31,6 +31,7 @@
Bool
fbCreateWindow(WindowPtr pWin)
{
MakeWindowOptional(pWin);
pWin->optional->actualised = 1;
#ifndef FB_NO_WINDOW_PIXMAPS
pWin->devPrivates[fbWinPrivateIndex].ptr =