diff options
Diffstat (limited to 'test/operator-source.c')
-rw-r--r-- | test/operator-source.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/test/operator-source.c b/test/operator-source.c index 26b41f6a..b61a6c52 100644 --- a/test/operator-source.c +++ b/test/operator-source.c @@ -68,7 +68,7 @@ set_surface_pattern (cairo_t *cr, int x, int y) double height = (int)(0.6 * HEIGHT); x += 0.2 * WIDTH; y += 0.2 * HEIGHT; - + source_surface = cairo_surface_create_similar (cairo_get_target (cr), CAIRO_CONTENT_COLOR_ALPHA, width, height); @@ -99,7 +99,7 @@ draw_mask (cairo_t *cr, int x, int y) double height = (int)(0.9 * HEIGHT); x += 0.05 * WIDTH; y += 0.05 * HEIGHT; - + mask_surface = cairo_surface_create_similar (cairo_get_target (cr), CAIRO_CONTENT_ALPHA, width, height); @@ -123,7 +123,7 @@ draw_glyphs (cairo_t *cr, int x, int y) cairo_text_extents_t extents; cairo_set_font_size (cr, 0.8 * HEIGHT); - + cairo_text_extents (cr, "FG", &extents); cairo_move_to (cr, x + (WIDTH - extents.width) / 2 - extents.x_bearing, @@ -138,7 +138,7 @@ draw_polygon (cairo_t *cr, int x, int y) double height = (int)(0.9 * HEIGHT); x += 0.05 * WIDTH; y += 0.05 * HEIGHT; - + cairo_new_path (cr); cairo_move_to (cr, x, y); cairo_line_to (cr, x, y + height); @@ -214,7 +214,7 @@ draw (cairo_t *cr, int width, int height) for (i = 0; i < ARRAY_SIZE (pattern_funcs); i++) { x = i * (WIDTH + PAD) + PAD; y = j * (HEIGHT + PAD) + PAD; - + cairo_save (cr); pattern = cairo_pattern_create_linear (x + WIDTH, y, @@ -225,7 +225,7 @@ draw (cairo_t *cr, int width, int height) 0.0, 0.0, 1.0, 0.0); /* Transparent blue */ cairo_set_source (cr, pattern); cairo_pattern_destroy (pattern); - + cairo_rectangle (cr, x, y, WIDTH, HEIGHT); cairo_fill_preserve (cr); cairo_clip (cr); @@ -235,7 +235,7 @@ draw (cairo_t *cr, int width, int height) draw_funcs[j] (cr, x, y); if (cairo_status (cr)) cairo_test_log ("%d %d HERE!\n", i, j); - + cairo_restore (cr); } } |