panoramiX: XineramaGetImageData(): declarare and init depth in one shot

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:27:17 +02:00
committed by Enrico Weigelt
parent 124dee2db0
commit 03f3388745

View File

@@ -1138,7 +1138,7 @@ XineramaGetImageData(DrawablePtr *pDrawables,
{
RegionRec SrcRegion, GrabRegion;
BoxRec SrcBox;
int size, sizeNeeded, depth;
int size, sizeNeeded;
DrawablePtr pDraw = pDrawables[0];
char *ScratchMem = NULL;
@@ -1157,7 +1157,7 @@ XineramaGetImageData(DrawablePtr *pDrawables,
RegionInit(&SrcRegion, &SrcBox, 1);
RegionNull(&GrabRegion);
depth = (format == XYPixmap) ? 1 : pDraw->depth;
int depth = (format == XYPixmap) ? 1 : pDraw->depth;
int i;
FOR_NSCREENS_BACKWARD(i) {