[pattern] Allow the projected surface extents to be negative.

In order to handle projection of analysis surface with user-fonts we need
to accommodate patterns extending into negative coordinate space.
This commit is contained in:
Chris Wilson 2008-10-23 13:36:19 +01:00
parent d5d29075bd
commit 2464b8a0a9

View file

@ -2250,11 +2250,11 @@ _cairo_pattern_get_extents (cairo_pattern_t *pattern,
NULL);
x1 = floor (x1);
if (x1 < 0)
x1 = 0;
if (x1 < CAIRO_RECT_INT_MIN)
x1 = CAIRO_RECT_INT_MIN;
y1 = floor (y1);
if (y1 < 0)
y1 = 0;
if (y1 < CAIRO_RECT_INT_MIN)
y1 = CAIRO_RECT_INT_MIN;
x2 = ceil (x2);
if (x2 > CAIRO_RECT_INT_MAX)