mirror of
https://github.com/X11Libre/xserver.git
synced 2026-01-26 14:03:17 +00:00
panoramiX: XineramaGetImageData(): scope inOut variable
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
parent
dee9b9a5be
commit
2f62e660ff
@ -1138,7 +1138,7 @@ XineramaGetImageData(DrawablePtr *pDrawables,
|
||||
{
|
||||
RegionRec SrcRegion, GrabRegion;
|
||||
BoxRec SrcBox, *pbox;
|
||||
int x, y, w, h, i, j, size, sizeNeeded, ScratchPitch, inOut, depth;
|
||||
int x, y, w, h, i, j, size, sizeNeeded, ScratchPitch, depth;
|
||||
DrawablePtr pDraw = pDrawables[0];
|
||||
char *ScratchMem = NULL;
|
||||
|
||||
@ -1173,7 +1173,7 @@ XineramaGetImageData(DrawablePtr *pDrawables,
|
||||
|
||||
RegionRec ScreenRegion;
|
||||
RegionInit(&ScreenRegion, &TheBox, 1);
|
||||
inOut = RegionContainsRect(&ScreenRegion, &SrcBox);
|
||||
int inOut = RegionContainsRect(&ScreenRegion, &SrcBox);
|
||||
if (inOut == rgnPART)
|
||||
RegionIntersect(&GrabRegion, &SrcRegion, &ScreenRegion);
|
||||
RegionUninit(&ScreenRegion);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user