panoramiX: XineramaGetImageData(): scope inOut variable

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult 2025-08-12 14:12:04 +02:00 committed by Enrico Weigelt
parent dee9b9a5be
commit 2f62e660ff

View File

@ -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);