sna/accel: Fix s/x/y/ typo in computing relative drawing coordinates

Reported-by:Roman Jarosz <kedgedev@gmail.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=41165
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2011-09-25 12:40:01 +01:00
parent 960688d168
commit a53538659d
1 changed files with 2 additions and 2 deletions

View File

@ -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;