summaryrefslogtreecommitdiff
path: root/test/huge-linear.c
diff options
context:
space:
mode:
authorAndrea Canciani <ranma42@gmail.com>2010-12-16 23:07:30 +0100
committerAndrea Canciani <ranma42@gmail.com>2011-01-02 18:32:46 +0100
commit6472864b2c424c0dfe4ff4e76eff8dfb896e60e8 (patch)
treef6412b9d1c4588dc204839c8f8c22f144047c6eb /test/huge-linear.c
parent38dce5d14473e1106c8ea7a67b9be0f400d442a2 (diff)
downloadcairo-6472864b2c424c0dfe4ff4e76eff8dfb896e60e8.tar.gz
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.
Diffstat (limited to 'test/huge-linear.c')
-rw-r--r--test/huge-linear.c2
1 files changed, 1 insertions, 1 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... */