Browse Source

Fix 'drawImage' scaling (the dimensions of the region that gets clipped also needs to be scaled).

v1.x
Joe Freeman 10 years ago
parent
commit
66a7a895d8
  1. 2
      src/CanvasRenderingContext2d.cc

2
src/CanvasRenderingContext2d.cc

@ -739,6 +739,8 @@ NAN_METHOD(Context2d::DrawImage) {
cairo_scale(ctx, fx, fy);
dx /= fx;
dy /= fy;
dw /= fx;
dh /= fy;
}
if (context->hasShadow()) {

Loading…
Cancel
Save