mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-05 12:18:01 +02:00
[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:
parent
d5d29075bd
commit
2464b8a0a9
1 changed files with 4 additions and 4 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue