mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-04-21 18:10:43 +02:00
[region] pixman_region32_contains_point() does not allow NULL for box
This commit is contained in:
parent
e46c1d7fa3
commit
0f21893b05
1 changed files with 3 additions and 1 deletions
|
|
@ -577,9 +577,11 @@ cairo_bool_t
|
|||
cairo_region_contains_point (cairo_region_t *region,
|
||||
int x, int y)
|
||||
{
|
||||
pixman_box32_t box;
|
||||
|
||||
if (region->status)
|
||||
return FALSE;
|
||||
|
||||
return pixman_region32_contains_point (®ion->rgn, x, y, NULL);
|
||||
return pixman_region32_contains_point (®ion->rgn, x, y, &box);
|
||||
}
|
||||
slim_hidden_def (cairo_region_contains_point);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue