summaryrefslogtreecommitdiffstatsci
path: root/src/cairo-tests/clip.cpp
diff options
context:
space:
mode:
authorBryce Harrington <b.harrington@samsung.com>2014-05-08 10:22:35 -0700
committerBryce Harrington <b.harrington@samsung.com>2014-05-08 18:50:52 -0700
commite4a47f2f5e6a4422c8899cf1858df649f11098ea (patch)
treea27c72a2661f4a0ac671100049074db7223dd94a /src/cairo-tests/clip.cpp
parent6462239c7432142640eaa3cc0f9b80fb102014d2 (diff)
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.
Diffstat (limited to 'src/cairo-tests/clip.cpp')
-rw-r--r--src/cairo-tests/clip.cpp2
1 files changed, 1 insertions, 1 deletions
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; j<num_y_elements; j++) {
y = particles?particles->y : j * element_spacing;
for (i=0; i<num_x_elements; i++) {