diff options
| author | Bryce Harrington <b.harrington@samsung.com> | 2013-11-27 19:03:25 -0800 |
|---|---|---|
| committer | Bryce Harrington <b.harrington@samsung.com> | 2013-11-27 19:03:25 -0800 |
| commit | 41f692367fff20ad69973f21d92ffe24bea73276 (patch) | |
| tree | fcc9d8c48919c1b1d2ae9770fa0b94ab54f73519 /src/cairo-tests/stroke.cpp | |
| parent | b5ed7231729463b73c603632dd35cabab787a68e (diff) | |
Indent 4 spaces instead of 2
Diffstat (limited to 'src/cairo-tests/stroke.cpp')
| -rw-r--r-- | src/cairo-tests/stroke.cpp | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/src/cairo-tests/stroke.cpp b/src/cairo-tests/stroke.cpp index 5dd09e1..ee8cf72 100644 --- a/src/cairo-tests/stroke.cpp +++ b/src/cairo-tests/stroke.cpp @@ -9,8 +9,8 @@ static int line_length; int ca_setup_stroke(caskbench_context_t *ctx) { - line_length = 60; - return 1; + line_length = 60; + return 1; } void @@ -21,20 +21,20 @@ ca_teardown_stroke(void) int ca_test_stroke(caskbench_context_t *ctx) { - int i, x, w, prev_w; - cairo_t *cr = ctx->cairo_cr; + int i, x, w, prev_w; + cairo_t *cr = ctx->cairo_cr; - x = 0; - prev_w = 0; - for (i=0; i<ctx->size; i++) { - randomize_color (cr); - w = ((double)ctx->size*rand())/RAND_MAX + 1; - x += 4 + (prev_w + w)/2.0; - cairo_move_to (cr, x, 10); - cairo_line_to (cr, x, 10 + line_length); - cairo_set_line_width (cr, w); - cairo_stroke (cr); - prev_w = w; - } - return 1; + x = 0; + prev_w = 0; + for (i=0; i<ctx->size; i++) { + randomize_color (cr); + w = ((double)ctx->size*rand())/RAND_MAX + 1; + x += 4 + (prev_w + w)/2.0; + cairo_move_to (cr, x, 10); + cairo_line_to (cr, x, 10 + line_length); + cairo_set_line_width (cr, w); + cairo_stroke (cr); + prev_w = w; + } + return 1; } |