From 72ae714b7400db7282aa0f92cc740bc106685e54 Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=C3=B8ren=20Sandmann=20Pedersen?= Date: Wed, 20 May 2009 08:28:54 -0400 Subject: [PATCH] Only do region lookups when the source region is different from the full region --- pixman/pixman-transformed.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pixman/pixman-transformed.c b/pixman/pixman-transformed.c index 015e247..2b95a2e 100644 --- a/pixman/pixman-transformed.c +++ b/pixman/pixman-transformed.c @@ -87,7 +87,8 @@ do_fetch (bits_image_t *pict, int x, int y, fetchPixelProc32 fetch, static void fetch_pixels_src_clip (bits_image_t *image, uint32_t *buffer, int n_pixels) { - if (image->common.src_clip != &(image->common.full_region)) + if (image->common.src_clip != &(image->common.full_region) && + !pixman_region32_equal (image->common.src_clip, &(image->common.full_region))) { int32_t *coords = (int32_t *)buffer; int i; -- 2.7.4