From e8dfb54ccea26b7e7948ca9806c97194892f0791 Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=C3=B8ren=20Sandmann?= Date: Tue, 12 Jun 2007 23:50:04 -0400 Subject: [PATCH] Make default clip region the full image --- TODO | 3 +++ pixman/pixman-image.c | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) 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; } -- 2.7.4