Fix skewing for negative angles

main
Isaiah Odhner 2014-12-08 08:14:58 -05:00
parent 71659ac5a6
commit bc8a97b9cc
1 changed files with 2 additions and 2 deletions

View File

@ -368,8 +368,8 @@ function stretch_and_skew(xscale, yscale, hsa, vsa){
Math.tan(vsa), // vertical skew (skewY)
Math.tan(hsa), // horizontal skew (skewX)
1, // y scale
bb_x, // x translation
bb_y // y translation
-bb_x, // x translation
-bb_y // y translation
);
new_ctx.drawImage(original_canvas, 0, 0, w, h);
new_ctx.restore();