summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--TODO3
-rw-r--r--pixman/pixman-image.c5
2 files changed, 7 insertions, 1 deletions
diff --git a/TODO b/TODO
index 26eab05..d1beb74 100644
--- a/TODO
+++ b/TODO
@@ -62,4 +62,7 @@
- Run cairo test suite; fix bugs
- one bug in source-scale-clip
+
+done:
+
- Default clip region should be the full image \ No newline at end of file
diff --git a/pixman/pixman-image.c b/pixman/pixman-image.c
index e47c7fc..8483068 100644
--- a/pixman/pixman-image.c
+++ b/pixman/pixman-image.c
@@ -279,7 +279,7 @@ create_bits (pixman_format_code_t format,
if (rowstride_bytes)
*rowstride_bytes = stride;
-
+
return calloc (buf_size, 1);
}
@@ -319,6 +319,9 @@ pixman_image_create_bits (pixman_format_code_t format,
*/
image->bits.indexed = NULL;
+ pixman_region_fini (&image->common.clip_region);
+ pixman_region_init_rect (&image->common.clip_region, 0, 0, width, height);
+
return image;
}