region: Fix pixman_region_translate() clipping bug
authorBenjamin Otte <otte@redhat.com>
Mon, 23 Aug 2010 16:20:09 +0000 (18:20 +0200)
committerBenjamin Otte <otte@redhat.com>
Tue, 24 Aug 2010 10:17:50 +0000 (12:17 +0200)
commita8ea889e5e3029c2aad0e54e849783242daca274
tree21db4a632d0ad1f2488aaa34f12be809773702c1
parent4d8fb1bc01654ba0d331e6aea8127920e8cdf0b8
region: Fix pixman_region_translate() clipping bug

Fixes the region-translate test case by clipping region translations to
the newly defined PIXMAN_REGION_MIN/MAX and using the newly introduced
type overflow_int_t to check for the overflow.
Also uses INT16_MAX or INT32_MAX for these values instead of relying on
the size of short and int types.
pixman/pixman-region.c
pixman/pixman-region16.c
pixman/pixman-region32.c