mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 03:44:06 +00:00
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:
committed by
Enrico Weigelt
parent
124dee2db0
commit
03f3388745
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user