Browse Source

Merge pull request #511 from woodcoder/cairo-fix

Use non-cairo 1.12 API for shadow blur
v1.x
Juriy Zaytsev 10 years ago
parent
commit
1d0d144bdd
  1. 2
      src/CanvasRenderingContext2d.cc

2
src/CanvasRenderingContext2d.cc

@ -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);

Loading…
Cancel
Save