mirror of
https://github.com/X11Libre/xserver.git
synced 2026-01-26 14:03:17 +00:00
panoramiX: XineramaGetImageData(): scope ScreenRegion
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
parent
34c3a9c7e2
commit
d9cf1a7a9d
@ -1136,7 +1136,7 @@ XineramaGetImageData(DrawablePtr *pDrawables,
|
||||
unsigned long planemask,
|
||||
char *data, int pitch, Bool isRoot)
|
||||
{
|
||||
RegionRec SrcRegion, ScreenRegion, GrabRegion;
|
||||
RegionRec SrcRegion, GrabRegion;
|
||||
BoxRec SrcBox, *pbox;
|
||||
int x, y, w, h, i, j, nbox, size, sizeNeeded, ScratchPitch, inOut, depth;
|
||||
DrawablePtr pDraw = pDrawables[0];
|
||||
@ -1171,6 +1171,7 @@ XineramaGetImageData(DrawablePtr *pDrawables,
|
||||
TheBox.y1 = pScreen->y;
|
||||
TheBox.y2 = TheBox.y1 + pScreen->height;
|
||||
|
||||
RegionRec ScreenRegion;
|
||||
RegionInit(&ScreenRegion, &TheBox, 1);
|
||||
inOut = RegionContainsRect(&ScreenRegion, &SrcBox);
|
||||
if (inOut == rgnPART)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user