mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-06 13:58:01 +02:00
[pattern] Unbounded patterns should have infinite extents.
Fix a slight typo that produced negative sized extents instead of the maximum.
This commit is contained in:
parent
5ace0cb17a
commit
31565677db
1 changed files with 3 additions and 2 deletions
|
|
@ -2093,10 +2093,11 @@ _cairo_pattern_get_extents (cairo_pattern_t *pattern,
|
|||
* horizontal/vertical linear gradients).
|
||||
*/
|
||||
|
||||
/* unbounded patterns -> 'infinite' extents */
|
||||
extents->x = CAIRO_RECT_INT_MIN;
|
||||
extents->y = CAIRO_RECT_INT_MIN;
|
||||
extents->width = CAIRO_RECT_INT_MIN + CAIRO_RECT_INT_MAX;
|
||||
extents->height = CAIRO_RECT_INT_MIN + CAIRO_RECT_INT_MAX;
|
||||
extents->width = CAIRO_RECT_INT_MAX - CAIRO_RECT_INT_MIN;
|
||||
extents->height = CAIRO_RECT_INT_MAX - CAIRO_RECT_INT_MIN;
|
||||
|
||||
return CAIRO_STATUS_SUCCESS;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue