We'll get an unhandled exception if the view is hidden, fortunately, lockFocusIfCanDraw does the right thing here, or at least the best we can hope for.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58817 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -55,7 +55,7 @@ CGContextRef wxOSXGetContextFromCurrentNSContext()
|
|||||||
|
|
||||||
void wxOSXLockFocus( WXWidget view)
|
void wxOSXLockFocus( WXWidget view)
|
||||||
{
|
{
|
||||||
[view lockFocus];
|
[view lockFocusIfCanDraw];
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxOSXUnlockFocus( WXWidget view)
|
void wxOSXUnlockFocus( WXWidget view)
|
||||||
|
Reference in New Issue
Block a user