xace: avoid 'unused variable pScreen'

Initialise pScreen explicitly, as REGION_* macros ignore pScreen.
This commit is contained in:
Daniel Stone 2006-11-04 21:41:03 +02:00 committed by Daniel Stone
parent c3ea1f7db4
commit 8ba0c7b62c

View File

@ -406,12 +406,14 @@ XaceCensorImage(client, pVisibleRegion, widthBytesLine, pDraw, x, y, w, h,
unsigned int format; unsigned int format;
char * pBuf; char * pBuf;
{ {
ScreenPtr pScreen = pDraw->pScreen; ScreenPtr pScreen;
RegionRec imageRegion; /* region representing x,y,w,h */ RegionRec imageRegion; /* region representing x,y,w,h */
RegionRec censorRegion; /* region to obliterate */ RegionRec censorRegion; /* region to obliterate */
BoxRec imageBox; BoxRec imageBox;
int nRects; int nRects;
pScreen = pDraw->pScreen;
imageBox.x1 = x; imageBox.x1 = x;
imageBox.y1 = y; imageBox.y1 = y;
imageBox.x2 = x + w; imageBox.x2 = x + w;