diff options
author | marha <marha@users.sourceforge.net> | 2012-08-03 08:16:19 +0200 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2012-08-03 09:35:02 +0200 |
commit | 18e75aa6ae27a6e44d93babd96afbbe0cd6077c8 (patch) | |
tree | a6124cc965bba51de50907418ce63ab4540f582d /pixman/test/stress-test.c | |
parent | 49838240b7d4cff1ffed1bd91e495f6919061f90 (diff) | |
download | vcxsrv-18e75aa6ae27a6e44d93babd96afbbe0cd6077c8.tar.gz vcxsrv-18e75aa6ae27a6e44d93babd96afbbe0cd6077c8.tar.bz2 vcxsrv-18e75aa6ae27a6e44d93babd96afbbe0cd6077c8.zip |
pixman mesa git update 3 Aug 2012
Diffstat (limited to 'pixman/test/stress-test.c')
-rw-r--r-- | pixman/test/stress-test.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pixman/test/stress-test.c b/pixman/test/stress-test.c index 54ab1c5a9..edcfe0947 100644 --- a/pixman/test/stress-test.c +++ b/pixman/test/stress-test.c @@ -468,6 +468,11 @@ set_general_properties (pixman_image_t *image, pixman_bool_t allow_alpha_map) width = lcg_rand_n (image->bits.width) - x + 10; height = lcg_rand_n (image->bits.height) - y + 10; + if (width + x < x) + width = INT32_MAX - x; + if (height + y < y) + height = INT32_MAX - y; + pixman_region32_union_rect ( ®ion, ®ion, x, y, width, height); } |