Bug 691137: Use proper coordinates when adding a device space quadratic curve. r=roc

This commit is contained in:
Bas Schouten 2011-10-11 02:35:52 +02:00
parent 82e9a39d4d
commit c77f32b5f2

View File

@ -2335,7 +2335,7 @@ nsCanvasRenderingContext2DAzure::QuadraticCurveTo(float cpx, float cpy, float x,
mPathBuilder->QuadraticBezierTo(Point(cpx, cpy), Point(x, y));
} else {
Matrix transform = mTarget->GetTransform();
mDSPathBuilder->QuadraticBezierTo(transform * Point(cpx, cpy), transform * Point(cpx, cpy));
mDSPathBuilder->QuadraticBezierTo(transform * Point(cpx, cpy), transform * Point(x, y));
}
return NS_OK;