Commit 622c01c5 authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

gdi32: Add back the extents test.

Spotted by Sebastian Lackner. Signed-off-by: 's avatarHuw Davies <huw@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent cd9aa35f
......@@ -1038,7 +1038,8 @@ BOOL WINAPI PtInRegion( HRGN hrgn, INT x, INT y )
if ((obj = GDI_GetObjPtr( hrgn, OBJ_REGION )))
{
region_find_pt( obj, x, y, &ret );
if (obj->numRects > 0 && is_in_rect( &obj->extents, x, y ))
region_find_pt( obj, x, y, &ret );
GDI_ReleaseObj( hrgn );
}
return ret;
......
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