From 33595b85738631f4fd691e57f81a9b44dd2636ee Mon Sep 17 00:00:00 2001 From: Søren Sandmann Pedersen Date: Sun, 7 Nov 2010 07:35:34 -0500 Subject: Formatting --- demo.c | 2 ++ region-iter.c | 14 +++++++------- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/demo.c b/demo.c index 712d12e..826ca45 100644 --- a/demo.c +++ b/demo.c @@ -90,7 +90,9 @@ on_expose (GtkWidget *widget, GdkEvent *event, gpointer data) cairo_set_source_rgba (cr, 0.2, 0.8, 0.2, 0.6); +#if 0 cairo_fill_preserve (cr); +#endif cairo_set_source_rgba (cr, 0.0, 0.3, 0.0, 0.8); diff --git a/region-iter.c b/region-iter.c index 9820200..f85fec3 100644 --- a/region-iter.c +++ b/region-iter.c @@ -184,7 +184,7 @@ static pixman_bool_t overlapped_iter_get_rows (overlapped_iter_t *iter, row_t *row1, row_t *row2) { int y1, y2; - + row1->first = iter->row1.first; row1->last = iter->row1.last; row2->first = iter->row2.first; @@ -434,7 +434,7 @@ add_active (int *actives, int *n_actives, int corner) int idx = (*n_actives)++; actives = realloc (actives, next_power (*n_actives) * sizeof (int)); - + actives[idx] = corner; return actives; @@ -458,7 +458,7 @@ region_path (pixman_region32_t *region, int *n) int *active = NULL; int n_corners = 0; int n_active = 0; - + region_iter_init (&iter, region); active = NULL; @@ -571,7 +571,7 @@ dump_corners (corner_t *corners, int n_corners) int i; printf ("%d (%p - %p)\n", n_corners, corners, corners + n_corners); - + for (i = 0; i < n_corners; ++i) { corner_t *corner = &(corners[i]); @@ -598,7 +598,7 @@ main () pixman_region32_t region1, region2; corner_t *corners; int n_corners; - + /* empty region */ pixman_region32_init (®ion); dump_region ("empty region", ®ion); @@ -696,7 +696,7 @@ main () pixman_region32_init_rect (®ion, 0, 0, 100, 100); pixman_region32_union_rect (®ion, ®ion, 50, 50, 100, 100); pixman_region32_union_rect (®ion, ®ion, 200, 0, 50, 50); - + printf ("-=- more complex path\n"); corners = region_path (®ion, &n_corners); @@ -709,7 +709,7 @@ main () pixman_region32_union_rect (®ion, ®ion, 150, 0, 50, 50); pixman_region32_init_rect (®ion2, 75, 75, 50, 50); pixman_region32_subtract (®ion, ®ion, ®ion2); - + printf ("-=- more complex path\n"); corners = region_path (®ion, &n_corners); -- cgit v1.2.3