From 86a206525350b7e82ab0e432ad0fb8858960857d Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Thu, 11 Feb 2010 13:40:28 -0800 Subject: [PATCH] glamor: Fix off-by-one in CopyPixels CopyArea path. Fixes window dragging in uncomposited metacity. --- glamor/glamor_copyarea.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glamor/glamor_copyarea.c b/glamor/glamor_copyarea.c index 94e987ca2..b7762cc22 100644 --- a/glamor/glamor_copyarea.c +++ b/glamor/glamor_copyarea.c @@ -76,7 +76,7 @@ glamor_copy_n_to_n_copypixels(DrawablePtr src, glamor_get_drawable_deltas(dst, dst_pixmap, &x_off, &y_off); for (i = 0; i < nbox; i++) { - int flip_y1 = dst_pixmap->drawable.height - 1 - box[i].y2 + y_off; + int flip_y1 = dst_pixmap->drawable.height - box[i].y2 + y_off; glRasterPos2i(box[i].x1 + x_off, flip_y1); glCopyPixels(box[i].x1 + dx + x_off,