git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67087
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
void wxWidgetCocoaImpl::SetCursor(const wxCursor& cursor)
{
void wxWidgetCocoaImpl::SetCursor(const wxCursor& cursor)
{
- NSPoint location = [NSEvent mouseLocation];
- location = [[m_osxView window] convertScreenToBase:location];
- NSPoint locationInView = [m_osxView convertPoint:location fromView:nil];
-
- if( NSMouseInRect(locationInView, [m_osxView bounds], YES) )
- [(NSCursor*)cursor.GetHCURSOR() set];
+ NSPoint location = [NSEvent mouseLocation];
+ location = [[m_osxView window] convertScreenToBase:location];
+ NSPoint locationInView = [m_osxView convertPoint:location fromView:nil];
+
+ if( NSMouseInRect(locationInView, [m_osxView bounds], YES) )
+ {
+ [(NSCursor*)cursor.GetHCURSOR() set];
+ }
}
[[m_osxView window] invalidateCursorRectsForView:m_osxView];
}
}
[[m_osxView window] invalidateCursorRectsForView:m_osxView];
}