Commit e6da1a78 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

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

parent c98d34d7
......@@ -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)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment