|
|
@ -372,7 +372,7 @@ Context2d::shadow(void (fn)(cairo_t *cr)) { |
|
|
|
cairo_user_to_device_distance(_context, &dx, &dy); |
|
|
|
int pad = state->shadowBlur * 2; |
|
|
|
cairo_surface_t *surface = cairo_get_group_target(_context); |
|
|
|
cairo_surface_t *shadow_surface = cairo_surface_create_similar_image(surface, |
|
|
|
cairo_surface_t *shadow_surface = cairo_image_surface_create( |
|
|
|
CAIRO_FORMAT_ARGB32, |
|
|
|
dx + 2 * pad, |
|
|
|
dy + 2 * pad); |
|
|
|