From 2f62e660ff2a5bd52e9850927550dca2f4e897ce Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Tue, 12 Aug 2025 14:12:04 +0200 Subject: [PATCH] panoramiX: XineramaGetImageData(): scope `inOut` variable Signed-off-by: Enrico Weigelt, metux IT consult --- Xext/panoramiX.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Xext/panoramiX.c b/Xext/panoramiX.c index eb7a38f8a8..a0f1af8aaa 100644 --- a/Xext/panoramiX.c +++ b/Xext/panoramiX.c @@ -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);