xace: avoid 'unused variable pScreen'
Initialise pScreen explicitly, as REGION_* macros ignore pScreen.
This commit is contained in:
parent
c3ea1f7db4
commit
8ba0c7b62c
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue