mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 08:04:30 +00:00
panoramiX: XineramaGetImageData(): scope inOut variable
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
committed by
Enrico Weigelt
parent
dee9b9a5be
commit
2f62e660ff
@@ -1138,7 +1138,7 @@ XineramaGetImageData(DrawablePtr *pDrawables,
|
|||||||
{
|
{
|
||||||
RegionRec SrcRegion, GrabRegion;
|
RegionRec SrcRegion, GrabRegion;
|
||||||
BoxRec SrcBox, *pbox;
|
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];
|
DrawablePtr pDraw = pDrawables[0];
|
||||||
char *ScratchMem = NULL;
|
char *ScratchMem = NULL;
|
||||||
|
|
||||||
@@ -1173,7 +1173,7 @@ XineramaGetImageData(DrawablePtr *pDrawables,
|
|||||||
|
|
||||||
RegionRec ScreenRegion;
|
RegionRec ScreenRegion;
|
||||||
RegionInit(&ScreenRegion, &TheBox, 1);
|
RegionInit(&ScreenRegion, &TheBox, 1);
|
||||||
inOut = RegionContainsRect(&ScreenRegion, &SrcBox);
|
int inOut = RegionContainsRect(&ScreenRegion, &SrcBox);
|
||||||
if (inOut == rgnPART)
|
if (inOut == rgnPART)
|
||||||
RegionIntersect(&GrabRegion, &SrcRegion, &ScreenRegion);
|
RegionIntersect(&GrabRegion, &SrcRegion, &ScreenRegion);
|
||||||
RegionUninit(&ScreenRegion);
|
RegionUninit(&ScreenRegion);
|
||||||
|
|||||||
Reference in New Issue
Block a user