d2d1: Only test figures that overlap the probe in d2d_path_geometry_point_inside().

Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Henri Verbeet 2015-10-07 17:56:01 +02:00 committed by Alexandre Julliard
parent c98d34d745
commit e6da1a780e
1 changed files with 4 additions and 0 deletions

View File

@ -1170,6 +1170,10 @@ static BOOL d2d_path_geometry_point_inside(const struct d2d_geometry *geometry,
{
const struct d2d_figure *figure = &geometry->u.path.figures[i];
if (probe->x < figure->bounds.left || probe->x > figure->bounds.right
|| probe->y < figure->bounds.top || probe->y > figure->bounds.bottom)
continue;
p0 = &figure->vertices[figure->vertex_count - 1];
for (j = 0; j < figure->vertex_count; p0 = p1, ++j)
{