diff options
author | Søren Sandmann <sandmann@redhat.com> | 2007-06-12 23:50:04 -0400 |
---|---|---|
committer | Søren Sandmann <sandmann@redhat.com> | 2007-06-12 23:50:04 -0400 |
commit | e8dfb54ccea26b7e7948ca9806c97194892f0791 (patch) | |
tree | f3544784bfe6cd62e56c46eab370e8d3b29ea6a7 | |
parent | 42192ad0fc7fe0fa7600f879646de867691351bb (diff) |
Make default clip region the full image
-rw-r--r-- | TODO | 3 | ||||
-rw-r--r-- | pixman/pixman-image.c | 5 |
2 files changed, 7 insertions, 1 deletions
@@ -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 e47c7fc2..84830680 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; } |