Browse Source

Change to 1.4 to match chrome

v1.x
Hussein Jafferjee 9 years ago
parent
commit
f8368996b8
  1. 6
      src/CanvasRenderingContext2d.cc

6
src/CanvasRenderingContext2d.cc

@ -895,10 +895,10 @@ NAN_METHOD(Context2d::DrawImage) {
context->blur(shadow_surface, context->state->shadowBlur / 2);
// paint
// @todo figure out where the 1.15 comes from
// @todo figure out where the 1.4 comes from
cairo_set_source_surface(ctx, shadow_surface,
dx - sx + context->state->shadowOffsetX - pad + 1.15,
dx - sx + context->state->shadowOffsetY - pad + 1.15);
dx - sx + context->state->shadowOffsetX - pad + 1.4,
dx - sx + context->state->shadowOffsetY - pad + 1.4);
cairo_paint(ctx);
// cleanup

Loading…
Cancel
Save