From 6472864b2c424c0dfe4ff4e76eff8dfb896e60e8 Mon Sep 17 00:00:00 2001 From: Andrea Canciani Date: Thu, 16 Dec 2010 23:07:30 +0100 Subject: [PATCH] test: Huge means more than MAX_INT Cairo makes it possible to create gradients whose extreme objects are defined with double precision coordinates, but it internally represents them with 24.8 fixed point precision. This shows that coordinates that don't fit the valid range are mishandled and don't even trigger an error status. --- test/huge-linear.c | 2 +- test/huge-radial.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/huge-linear.c b/test/huge-linear.c index 3d49c2e47..f84b4ea0c 100644 --- a/test/huge-linear.c +++ b/test/huge-linear.c @@ -27,7 +27,7 @@ #include "cairo-test.h" /* set this to 0.1 to make this test work */ -#define FACTOR 10 +#define FACTOR 1.e6 /* XXX poppler-cairo doesn't handle gradients very well... */ diff --git a/test/huge-radial.c b/test/huge-radial.c index a7b50f382..21524b7a4 100644 --- a/test/huge-radial.c +++ b/test/huge-radial.c @@ -29,7 +29,7 @@ #include "cairo-test.h" /* set this to 0.1 to make this test work */ -#define FACTOR 10 +#define FACTOR 1.e6 /* XXX poppler-cairo doesn't handle gradients very well... */