diff options
author | Jeff Muizelaar <jmuizelaar@mozilla.com> | 2009-02-10 17:57:00 -0500 |
---|---|---|
committer | Jeff Muizelaar <jmuizelaar@mozilla.com> | 2009-02-10 17:57:00 -0500 |
commit | b9f0c4b25223830ce73f7e3adef85a0e97a31c0e (patch) | |
tree | 753e4e1dcf822371422cfc8489f25456325fd730 /src/cairo-font-face-twin.c | |
parent | dffdbd85157395bceb27d30d6426aa47173f6a18 (diff) |
Use _cairo_round() instead of round()
MSVC doesn't have round() and the code probably wants
to round in the same direction regardless of whether
the values are negative or positive.
Diffstat (limited to 'src/cairo-font-face-twin.c')
-rw-r--r-- | src/cairo-font-face-twin.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/cairo-font-face-twin.c b/src/cairo-font-face-twin.c index b8343221..3ced9b02 100644 --- a/src/cairo-font-face-twin.c +++ b/src/cairo-font-face-twin.c @@ -34,8 +34,6 @@ * Behdad Esfahbod <behdad@behdad.org> */ -#define _ISOC99_SOURCE /* for round() */ - #include "cairoint.h" #include <math.h> @@ -255,8 +253,8 @@ compute_hinting_scales (cairo_t *cr, compute_hinting_scale (cr, x, y, y_scale, y_scale_inv); } -#define SNAPXI(p) (round ((p) * x_scale) * x_scale_inv) -#define SNAPYI(p) (round ((p) * y_scale) * y_scale_inv) +#define SNAPXI(p) (_cairo_round ((p) * x_scale) * x_scale_inv) +#define SNAPYI(p) (_cairo_round ((p) * y_scale) * y_scale_inv) /* This controls the global font size */ #define F(g) ((g) / 72.) |