diff options
author | Daniel Stone <daniel@fooishbar.org> | 2006-11-04 21:41:03 +0200 |
---|---|---|
committer | Daniel Stone <daniels@endtroducing.fooishbar.org> | 2006-11-08 15:29:16 +0200 |
commit | 8ba0c7b62c78dead722b0c8aa414f37bac4414b7 (patch) | |
tree | f8f3183b28964191227e5e5385083049b63b9f66 /Xext/xace.c | |
parent | c3ea1f7db494365032526dc06a7283384bd0ecd1 (diff) |
xace: avoid 'unused variable pScreen'
Initialise pScreen explicitly, as REGION_* macros ignore pScreen.
Diffstat (limited to 'Xext/xace.c')
-rw-r--r-- | Xext/xace.c | 4 |
1 files changed, 3 insertions, 1 deletions
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; |