diff options
Diffstat (limited to 'xorg-server/hw/xnest/Pixmap.c')
-rw-r--r-- | xorg-server/hw/xnest/Pixmap.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/xorg-server/hw/xnest/Pixmap.c b/xorg-server/hw/xnest/Pixmap.c index 04311966d..676a2ba95 100644 --- a/xorg-server/hw/xnest/Pixmap.c +++ b/xorg-server/hw/xnest/Pixmap.c @@ -33,7 +33,8 @@ is" without express or implied warranty. #include "Screen.h" #include "XNPixmap.h" -DevPrivateKey xnestPixmapPrivateKey = &xnestPixmapPrivateKey; +static int xnestPixmapPrivateKeyIndex; +DevPrivateKey xnestPixmapPrivateKey = &xnestPixmapPrivateKeyIndex; PixmapPtr xnestCreatePixmap(ScreenPtr pScreen, int width, int height, int depth, @@ -89,7 +90,7 @@ xnestPixmapToRegion(PixmapPtr pPixmap) register RegionPtr pReg, pTmpReg; register int x, y; unsigned long previousPixel, currentPixel; - BoxRec Box; + BoxRec Box = { 0, 0, 0, 0 }; Bool overlap; ximage = XGetImage(xnestDisplay, xnestPixmap(pPixmap), 0, 0, |