mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 03:44:06 +00:00
panoramiX: XineramaGetImageData(): scope pBox
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
committed by
Enrico Weigelt
parent
b9f76047fc
commit
79b6f60277
@@ -1137,7 +1137,7 @@ XineramaGetImageData(DrawablePtr *pDrawables,
|
||||
char *data, int pitch, Bool isRoot)
|
||||
{
|
||||
RegionRec SrcRegion, GrabRegion;
|
||||
BoxRec SrcBox, *pbox;
|
||||
BoxRec SrcBox;
|
||||
int size, sizeNeeded, ScratchPitch, depth;
|
||||
DrawablePtr pDraw = pDrawables[0];
|
||||
char *ScratchMem = NULL;
|
||||
@@ -1192,7 +1192,7 @@ XineramaGetImageData(DrawablePtr *pDrawables,
|
||||
|
||||
int nbox = RegionNumRects(&GrabRegion);
|
||||
if (nbox) {
|
||||
pbox = RegionRects(&GrabRegion);
|
||||
BoxRec *pbox = RegionRects(&GrabRegion);
|
||||
|
||||
while (nbox--) {
|
||||
int w = pbox->x2 - pbox->x1;
|
||||
|
||||
Reference in New Issue
Block a user