summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Otte <otte@gnome.org>2009-11-04 13:59:58 +0100
committerBenjamin Otte <otte@gnome.org>2009-11-04 13:59:58 +0100
commita9f37953c71e16f65122097462e51b035783a965 (patch)
treefe37987ae3c7b2d142f896336a58e0062097ac03
parentaa1f245ea313a2f1f0dda3994f5b48073b0c385d (diff)
[xlib] Use correct number when checking if points are out of range
-rw-r--r--src/cairo-xlib-surface.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/cairo-xlib-surface.c b/src/cairo-xlib-surface.c
index fc235a9f..92605ff6 100644
--- a/src/cairo-xlib-surface.c
+++ b/src/cairo-xlib-surface.c
@@ -2506,14 +2506,14 @@ static cairo_bool_t
_line_exceeds_16_16 (const cairo_line_t *line)
{
return
- line->p1.x < CAIRO_FIXED_16_16_MIN ||
- line->p1.x > CAIRO_FIXED_16_16_MAX ||
- line->p2.x < CAIRO_FIXED_16_16_MIN ||
- line->p2.x > CAIRO_FIXED_16_16_MAX ||
- line->p1.y < CAIRO_FIXED_16_16_MIN ||
- line->p1.y > CAIRO_FIXED_16_16_MAX ||
- line->p2.y < CAIRO_FIXED_16_16_MIN ||
- line->p2.y > CAIRO_FIXED_16_16_MAX;
+ line->p1.x < _cairo_fixed_from_int (CAIRO_FIXED_16_16_MIN) ||
+ line->p1.x > _cairo_fixed_from_int (CAIRO_FIXED_16_16_MAX) ||
+ line->p2.x < _cairo_fixed_from_int (CAIRO_FIXED_16_16_MIN) ||
+ line->p2.x > _cairo_fixed_from_int (CAIRO_FIXED_16_16_MAX) ||
+ line->p1.y < _cairo_fixed_from_int (CAIRO_FIXED_16_16_MIN) ||
+ line->p1.y > _cairo_fixed_from_int (CAIRO_FIXED_16_16_MAX) ||
+ line->p2.y < _cairo_fixed_from_int (CAIRO_FIXED_16_16_MIN) ||
+ line->p2.y > _cairo_fixed_from_int (CAIRO_FIXED_16_16_MAX);
}
static void