]> git.cworth.org Git - grrobot/blobdiff - src/grr_icon.c
Track changes in Cairo 0.1.1
[grrobot] / src / grr_icon.c
index d34ab4b3d489fc2fefefee40c9cd1775f4f087e5..f4515fe581deb04ce6ebcf96cbb61440fc5c024c 100644 (file)
@@ -242,7 +242,7 @@ grr_icon_predraw (grr_icon_t *icon, cairo_t *xrs, int width, int height)
            cairo_surface_destroy (icon->surface);
        icon->surface_width = width;
        icon->surface_height = height;
-       icon->surface = cairo_surface_create_similar (cairo_get_target_surface (xrs),
+       icon->surface = cairo_surface_create_similar (cairo_current_target_surface (xrs),
                                                      CAIRO_FORMAT_ARGB32,
                                                      width, height);
     }