mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 03:44:06 +00:00
panoramix: XineramaGetImageData(): scope nbox
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
committed by
Enrico Weigelt
parent
d9cf1a7a9d
commit
dee9b9a5be
@@ -1138,7 +1138,7 @@ XineramaGetImageData(DrawablePtr *pDrawables,
|
||||
{
|
||||
RegionRec SrcRegion, GrabRegion;
|
||||
BoxRec SrcBox, *pbox;
|
||||
int x, y, w, h, i, j, nbox, size, sizeNeeded, ScratchPitch, inOut, depth;
|
||||
int x, y, w, h, i, j, size, sizeNeeded, ScratchPitch, inOut, depth;
|
||||
DrawablePtr pDraw = pDrawables[0];
|
||||
char *ScratchMem = NULL;
|
||||
|
||||
@@ -1190,8 +1190,7 @@ XineramaGetImageData(DrawablePtr *pDrawables,
|
||||
else if (inOut == rgnOUT)
|
||||
continue;
|
||||
|
||||
nbox = RegionNumRects(&GrabRegion);
|
||||
|
||||
int nbox = RegionNumRects(&GrabRegion);
|
||||
if (nbox) {
|
||||
pbox = RegionRects(&GrabRegion);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user