added proper accessor for getting region boundaries

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17570 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2002-10-18 08:48:07 +00:00
parent 5a751e2699
commit 6302278380
2 changed files with 2 additions and 2 deletions

View File

@@ -273,7 +273,7 @@ PicHandle wxMacCreatePict(GWorldPtr wp, GWorldPtr mask)
SetGWorld( wp , NULL ) ;
Rect portRect ;
if ( clipRgn )
portRect = (**clipRgn).rgnBBox ;
GetRegionBounds( clipRgn , &portRect ) ;
else
GetPortBounds( wp , &portRect ) ;
pict = OpenPicture(&portRect);