[cairo] Define min-tolerance in terms of cairo_fixed_t

By using the cairo_fixed_t macros we can compute the correct minimum
tolerance for any configuration.
This commit is contained in:
Chris Wilson 2008-09-24 17:03:49 +01:00
parent c9ec82f3a8
commit 8c0ff8b585

View file

@ -42,7 +42,7 @@
#include "cairo-arc-private.h"
#include "cairo-path-private.h"
#define CAIRO_TOLERANCE_MINIMUM 0.0002 /* We're limited by 16 bits of sub-pixel precision */
#define CAIRO_TOLERANCE_MINIMUM _cairo_fixed_to_double(1)
static const cairo_t _cairo_nil = {
CAIRO_REFERENCE_COUNT_INVALID, /* ref_count */