summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSøren Sandmann Pedersen <ssp@l3000.localdomain>2010-11-07 07:35:34 -0500
committerSøren Sandmann Pedersen <ssp@l3000.localdomain>2010-11-07 07:35:34 -0500
commit33595b85738631f4fd691e57f81a9b44dd2636ee (patch)
treea591874e54b5db29c8d23a37004b877aedf40d3b
parentc38c861d3f8f4e0e1076368bb350131c6cd0e4aa (diff)
Formatting
-rw-r--r--demo.c2
-rw-r--r--region-iter.c14
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 (&region);
dump_region ("empty region", &region);
@@ -696,7 +696,7 @@ main ()
pixman_region32_init_rect (&region, 0, 0, 100, 100);
pixman_region32_union_rect (&region, &region, 50, 50, 100, 100);
pixman_region32_union_rect (&region, &region, 200, 0, 50, 50);
-
+
printf ("-=- more complex path\n");
corners = region_path (&region, &n_corners);
@@ -709,7 +709,7 @@ main ()
pixman_region32_union_rect (&region, &region, 150, 0, 50, 50);
pixman_region32_init_rect (&region2, 75, 75, 50, 50);
pixman_region32_subtract (&region, &region, &region2);
-
+
printf ("-=- more complex path\n");
corners = region_path (&region, &n_corners);