gdi32: Add back the extents test.

Spotted by Sebastian Lackner.

Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Huw Davies 2016-07-08 15:57:36 +01:00 committed by Alexandre Julliard
parent cd9aa35f68
commit 622c01c5e1

View file

@ -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;