|
@ -900,6 +900,10 @@ NAN_METHOD(Context2d::DrawImage) { |
|
|
dx - sx + context->state->shadowOffsetX - pad + 1.15, |
|
|
dx - sx + context->state->shadowOffsetX - pad + 1.15, |
|
|
dx - sx + context->state->shadowOffsetY - pad + 1.15); |
|
|
dx - sx + context->state->shadowOffsetY - pad + 1.15); |
|
|
cairo_paint(ctx); |
|
|
cairo_paint(ctx); |
|
|
|
|
|
|
|
|
|
|
|
// cleanup
|
|
|
|
|
|
cairo_destroy(shadow_context); |
|
|
|
|
|
cairo_surface_destroy(shadow_surface); |
|
|
} else { |
|
|
} else { |
|
|
context->setSourceRGBA(context->state->shadow); |
|
|
context->setSourceRGBA(context->state->shadow); |
|
|
cairo_mask_surface(ctx, surface, |
|
|
cairo_mask_surface(ctx, surface, |
|
|