]> git.saurik.com Git - wxWidgets.git/blobdiff - src/osx/cocoa/utils.mm
bring in the definition of wxSizer, making non-precomp builds working again after...
[wxWidgets.git] / src / osx / cocoa / utils.mm
index c60da586584be33019b619287824e495b91daea2..2bd4e8142897c0227bc525e77f4e6250c5e48f10 100644 (file)
@@ -177,6 +177,10 @@ void wxClientDisplayRect(int *x, int *y, int *width, int *height)
 void wxGetMousePosition( int* x, int* y )
 {
     wxPoint pt = wxFromNSPoint(NULL, [NSEvent mouseLocation]);
+    if ( x )
+        *x = pt.x;
+    if ( y )
+        *y = pt.y;
 };
 
 wxTimerImpl* wxGUIAppTraits::CreateTimerImpl(wxTimer *timer)
@@ -267,6 +271,4 @@ wxBitmap wxWindowDCImpl::DoGetAsBitmap(const wxRect *subrect) const
 
 #endif // wxUSE_GUI
 
-
-
 #endif // wxOSX_USE_COCOA
\ No newline at end of file