From e4a47f2f5e6a4422c8899cf1858df649f11098ea Mon Sep 17 00:00:00 2001 From: Bryce Harrington Date: Thu, 8 May 2014 10:22:35 -0700 Subject: Track the image path as part of the cairo context, not a shape default We aren't randomizing the image or varying it from shape to shape, so it doesn't really belong in the shapes structure. --- src/cairo-tests/clip.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cairo-tests/clip.cpp') diff --git a/src/cairo-tests/clip.cpp b/src/cairo-tests/clip.cpp index e8f2872..f688c35 100644 --- a/src/cairo-tests/clip.cpp +++ b/src/cairo-tests/clip.cpp @@ -60,7 +60,7 @@ void drawClip(caskbench_context_t *ctx,kinetics_t *particles) int w, h; double x,y; cairo_t *cr = ctx->cairo_cr; - image = cairo_image_surface_create_from_png (ctx->shape_defaults.image_path); + image = cairo_image_surface_create_from_png (ctx->stock_image_path); for (j=0; jy : j * element_spacing; for (i=0; i