From 39cc110caa1f6481a7213ae39f82669333ec1645 Mon Sep 17 00:00:00 2001 From: Thomas Hellstrom Date: Tue, 29 Dec 2009 09:34:42 +0100 Subject: [PATCH] EXA: Fix bugs in exaGetImage / ExaCheckGetImage migration. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Thomas Hellstrom Acked-by: Michel Dänzer Acked-by: Maarten Maathuis Signed-off-by: Keith Packard --- exa/exa_accel.c | 2 +- exa/exa_unaccel.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/exa/exa_accel.c b/exa/exa_accel.c index 0f6e5f78a..c56c6bc9f 100644 --- a/exa/exa_accel.c +++ b/exa/exa_accel.c @@ -1270,7 +1270,7 @@ exaGetImage (DrawablePtr pDrawable, int x, int y, int w, int h, RegionRec Reg; ExaMigrationRec pixmaps[1]; - Box.x1 = pDrawable->y + x + xoff; + Box.x1 = pDrawable->x + x + xoff; Box.y1 = pDrawable->y + y + yoff; Box.x2 = Box.x1 + w; Box.y2 = Box.y1 + h; diff --git a/exa/exa_unaccel.c b/exa/exa_unaccel.c index eee14da4a..0dbcd53b2 100644 --- a/exa/exa_unaccel.c +++ b/exa/exa_unaccel.c @@ -339,7 +339,7 @@ ExaCheckGetImage(DrawablePtr pDrawable, int x, int y, int w, int h, exaGetDrawableDeltas(pDrawable, pPix, &xoff, &yoff); - Box.x1 = pDrawable->y + x + xoff; + Box.x1 = pDrawable->x + x + xoff; Box.y1 = pDrawable->y + y + yoff; Box.x2 = Box.x1 + w; Box.y2 = Box.y1 + h;