mirror of
https://github.com/X11Libre/xserver.git
synced 2026-11-12 04:55:49 +00:00
panoramiX: XineramaGetImageData(): scope ScratchPitch variable
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
parent
79b6f60277
commit
124dee2db0
1 changed files with 2 additions and 2 deletions
|
|
@ -1138,7 +1138,7 @@ XineramaGetImageData(DrawablePtr *pDrawables,
|
|||
{
|
||||
RegionRec SrcRegion, GrabRegion;
|
||||
BoxRec SrcBox;
|
||||
int size, sizeNeeded, ScratchPitch, depth;
|
||||
int size, sizeNeeded, depth;
|
||||
DrawablePtr pDraw = pDrawables[0];
|
||||
char *ScratchMem = NULL;
|
||||
|
||||
|
|
@ -1197,7 +1197,7 @@ XineramaGetImageData(DrawablePtr *pDrawables,
|
|||
while (nbox--) {
|
||||
int w = pbox->x2 - pbox->x1;
|
||||
int h = pbox->y2 - pbox->y1;
|
||||
ScratchPitch = PixmapBytePad(w, depth);
|
||||
int ScratchPitch = PixmapBytePad(w, depth);
|
||||
sizeNeeded = ScratchPitch * h;
|
||||
|
||||
if (sizeNeeded > size) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue