mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-04-19 23:00:44 +02:00
xace: avoid 'unused variable pScreen'
Initialise pScreen explicitly, as REGION_* macros ignore pScreen.
This commit is contained in:
parent
c3ea1f7db4
commit
8ba0c7b62c
1 changed files with 3 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue