summaryrefslogtreecommitdiffstatsci
path: root/src/caskbench.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/caskbench.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/caskbench.cpp')
-rw-r--r--src/caskbench.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/caskbench.cpp b/src/caskbench.cpp
index 9e92576..6701d59 100644
--- a/src/caskbench.cpp
+++ b/src/caskbench.cpp
@@ -59,7 +59,7 @@ typedef struct _caskbench_options {
double blue;
double alpha;
int animation;
- char *image_path;
+ char *stock_image_path;
int stroke_width;
int multi_shapes;
@@ -238,8 +238,8 @@ process_options(caskbench_options_t *opt, int argc, char *argv[])
{"animation", 'g', POPT_ARG_INT, &opt->animation, 0,
"Controls the kinematics of the objects drawn",
NULL},
- {"image-path", 'I', POPT_ARG_STRING, &opt->image_path, 0,
- "Image path to refer the image for setting source, clipping, patterns",
+ {"image-path", 'I', POPT_ARG_STRING, &opt->stock_image_path, 0,
+ "Path to a stock image for use in clipping, patterns, etc.",
NULL},
{"stroke-width", 'w', POPT_ARG_INT, &opt->stroke_width, 0,
"represents stroke width of the object",
@@ -295,7 +295,7 @@ process_options(caskbench_options_t *opt, int argc, char *argv[])
opt->blue = 0;
opt->alpha = 0;
opt->animation = 0;
- opt->image_path = NULL;
+ opt->stock_image_path = NULL;
opt->multi_shapes = 0;
opt->stroke_width = 0;
opt->stroke_red = 0;
@@ -529,7 +529,6 @@ shape_defaults_init(shapes *shape_defaults, caskbench_options_t *opt)
shape_defaults->green = opt->green;
shape_defaults->blue = opt->blue;
shape_defaults->alpha = opt->alpha;
- shape_defaults->image_path = opt->image_path;
shape_defaults->stroke_width = opt->stroke_width;
shape_defaults->multi_shapes = opt->multi_shapes;
shape_defaults->animation = opt->animation;