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:
parent
960688d168
commit
a53538659d
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue