mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-05 18:01:34 +00:00
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:
parent
cd9aa35f68
commit
622c01c5e1
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue