From 8ba0c7b62c78dead722b0c8aa414f37bac4414b7 Mon Sep 17 00:00:00 2001 From: Daniel Stone Date: Sat, 4 Nov 2006 21:41:03 +0200 Subject: [PATCH] xace: avoid 'unused variable pScreen' Initialise pScreen explicitly, as REGION_* macros ignore pScreen. --- Xext/xace.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Xext/xace.c b/Xext/xace.c index 14a5e7963..7f7944a17 100644 --- a/Xext/xace.c +++ b/Xext/xace.c @@ -406,12 +406,14 @@ XaceCensorImage(client, pVisibleRegion, widthBytesLine, pDraw, x, y, w, h, unsigned int format; char * pBuf; { - ScreenPtr pScreen = pDraw->pScreen; + ScreenPtr pScreen; RegionRec imageRegion; /* region representing x,y,w,h */ RegionRec censorRegion; /* region to obliterate */ BoxRec imageBox; int nRects; + pScreen = pDraw->pScreen; + imageBox.x1 = x; imageBox.y1 = y; imageBox.x2 = x + w;