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/roundrect.cpp | |
| parent | b5ed7231729463b73c603632dd35cabab787a68e (diff) | |
Indent 4 spaces instead of 2
Diffstat (limited to 'src/cairo-tests/roundrect.cpp')
| -rw-r--r-- | src/cairo-tests/roundrect.cpp | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/src/cairo-tests/roundrect.cpp b/src/cairo-tests/roundrect.cpp index c75a7d2..79f573c 100644 --- a/src/cairo-tests/roundrect.cpp +++ b/src/cairo-tests/roundrect.cpp @@ -9,8 +9,8 @@ static int line_length; int ca_setup_roundrect(caskbench_context_t *ctx) { - line_length = 60; - return 1; + line_length = 60; + return 1; } void @@ -23,29 +23,29 @@ rounded_rectangle (cairo_t *cr, double x, double y, double w, double h, double radius) { - cairo_move_to (cr, x+radius, y); - cairo_arc (cr, x+w-radius, y+radius, radius, M_PI + M_PI / 2, M_PI * 2 ); - cairo_arc (cr, x+w-radius, y+h-radius, radius, 0, M_PI / 2 ); - cairo_arc (cr, x+radius, y+h-radius, radius, M_PI/2, M_PI ); - cairo_arc (cr, x+radius, y+radius, radius, M_PI, 270 * M_PI / 180); + cairo_move_to (cr, x+radius, y); + cairo_arc (cr, x+w-radius, y+radius, radius, M_PI + M_PI / 2, M_PI * 2 ); + cairo_arc (cr, x+w-radius, y+h-radius, radius, 0, M_PI / 2 ); + cairo_arc (cr, x+radius, y+h-radius, radius, M_PI/2, M_PI ); + cairo_arc (cr, x+radius, y+radius, radius, M_PI, 270 * M_PI / 180); } int ca_test_roundrect(caskbench_context_t *ctx) { - int i, w, x, y; - cairo_t *cr = ctx->cairo_cr; + int i, w, x, y; + cairo_t *cr = ctx->cairo_cr; - for (i=0; i<ctx->size; i++) { - randomize_color (cr); - x = 10 + ((double)ctx->canvas_width*rand())/RAND_MAX; - y = 10 + ((double)ctx->canvas_height*rand())/RAND_MAX;; - w = ((double)ctx->size*rand())/RAND_MAX + 1; + for (i=0; i<ctx->size; i++) { + randomize_color (cr); + x = 10 + ((double)ctx->canvas_width*rand())/RAND_MAX; + y = 10 + ((double)ctx->canvas_height*rand())/RAND_MAX;; + w = ((double)ctx->size*rand())/RAND_MAX + 1; - rounded_rectangle (cr, x, y, 100, 40, 4); - cairo_set_line_width (cr, w); - cairo_stroke (cr); - } - return 1; + rounded_rectangle (cr, x, y, 100, 40, 4); + cairo_set_line_width (cr, w); + cairo_stroke (cr); + } + return 1; } |