From a53538659d5e18cb5a7a7a7dbd460f35985183fd Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Sun, 25 Sep 2011 12:40:01 +0100 Subject: [PATCH] sna/accel: Fix s/x/y/ typo in computing relative drawing coordinates Reported-by:Roman Jarosz Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=41165 Signed-off-by: Chris Wilson --- src/sna/sna_accel.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c index aefb731b..55dd2cd9 100644 --- a/src/sna/sna_accel.c +++ b/src/sna/sna_accel.c @@ -1826,7 +1826,7 @@ sna_poly_point_blt(DrawablePtr drawable, pt++; if (mode == CoordModePrevious) { x += last.x; - y += last.x; + y += last.y; last.x = x; last.y = y; } else { @@ -1992,7 +1992,7 @@ sna_poly_line_blt(DrawablePtr drawable, pt++; if (mode == CoordModePrevious) { x += last.x; - y += last.x; + y += last.y; } else { x += drawable->x; y += drawable->y;