xf86-video-intel: uxa/uxa-accel.c

Chris Wilson ickle at kemper.freedesktop.org
Sat Jun 19 16:11:48 PDT 2010


 uxa/uxa-accel.c |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

New commits:
commit e8783869ad55d337601b6f6a51c02f6576c64f38
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date:   Sun Jun 20 00:09:20 2010 +0100

    uxa: Apply the source offsets to the pixmap source, not target.
    
    A slight confusion in computing the correction image location resulted
    in the application of the source offsets to the pixel location in the
    target and not in the source as intended.
    
    Fixes the visual corruption of the scrollbar in Chromium, and hopefully
    the crash reported by Robert Hooker when starting gdm after plymouth.
    
    Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>

diff --git a/uxa/uxa-accel.c b/uxa/uxa-accel.c
index 00a43b1..ded66a1 100644
--- a/uxa/uxa-accel.c
+++ b/uxa/uxa-accel.c
@@ -562,13 +562,13 @@ uxa_copy_n_to_n(DrawablePtr pSrcDrawable,
 		bpp /= 8;
 		while (nbox--) {
 			if (!uxa_screen->info->get_image(pSrcPixmap,
-							 pbox->x1 + src_off_x,
-							 pbox->y1 + src_off_y,
+							 pbox->x1 + dx + src_off_x,
+							 pbox->y1 + dy + src_off_y,
 							 pbox->x2 - pbox->x1,
 							 pbox->y2 - pbox->y1,
 							 (char *) dst +
-							 (pbox->y1 + dy + dst_off_y) * stride +
-							 (pbox->x1 + dx + dst_off_x) * bpp,
+							 (pbox->y1 + dst_off_y) * stride +
+							 (pbox->x1 + dst_off_x) * bpp,
 							 stride))
 				goto fallback;
 


More information about the xorg-commit mailing list