]> git.saurik.com Git - wxWidgets.git/commitdiff
wxDisplay::GetFromWindow is only on msw evidently
authorRyan Norton <wxprojects@comcast.net>
Mon, 28 Feb 2005 18:18:30 +0000 (18:18 +0000)
committerRyan Norton <wxprojects@comcast.net>
Mon, 28 Feb 2005 18:18:30 +0000 (18:18 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32473 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/wincmn.cpp

index 5115c3cce6e308a9e05d73b051003aef3c3aa650..8277a7c785bdffd833a39a693785204ce1bb83a7 100644 (file)
@@ -438,7 +438,8 @@ void wxWindowBase::Centre(int direction)
         //RN:  If we are using wxDisplay we get
         //the dimensions of the monitor the window is on,
         //otherwise we get the dimensions of the primary monitor
-#if wxUSE_DISPLAY
+        //FIXME:  wxDisplay::GetFromWindow only implemented on MSW
+#if wxUSE_DISPLAY && defined(__WXMSW__)
         int nDisplay = wxDisplay::GetFromWindow((wxWindow*)this);
         if(nDisplay != wxNOT_FOUND)
         {