diff options
| author | Bryce Harrington <b.harrington@samsung.com> | 2014-05-08 10:11:39 -0700 |
|---|---|---|
| committer | Bryce Harrington <b.harrington@samsung.com> | 2014-05-08 18:50:52 -0700 |
| commit | 6462239c7432142640eaa3cc0f9b80fb102014d2 (patch) | |
| tree | 3619d15ee8332f54ce5332719a20626fd2798ba0 /src/skia-tests/stroke.cpp | |
| parent | 151f179755bf5e7d8a61d28cc7cfac109e2952d0 (diff) | |
Use shape_type_t in shapes structure
Diffstat (limited to 'src/skia-tests/stroke.cpp')
| -rw-r--r-- | src/skia-tests/stroke.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/skia-tests/stroke.cpp b/src/skia-tests/stroke.cpp index 92af211..898f068 100644 --- a/src/skia-tests/stroke.cpp +++ b/src/skia-tests/stroke.cpp @@ -29,14 +29,15 @@ static void drawShape(caskbench_context_t *ctx,double x,double y,kinetics_t *par { cairo_t *cr = ctx->cairo_cr; int old_x, old_y; - int i,shape,p; + int i, p; double r; + shape_type_t shape; r = particles?50:0.9 * element_spacing /2; - if(!ctx->shape_defaults.shape_id) - shape = ((4.0 * rand())/RAND_MAX) +1; + if(ctx->shape_defaults.shape_type == CB_SHAPE_NONE) + shape = (shape_type_t) (((4.0 * rand())/RAND_MAX) + 1); else - shape = ctx->shape_defaults.shape_id ; + shape = ctx->shape_defaults.shape_type; switch (shape) { case 1: |