]> git.saurik.com Git - wxWidgets.git/blobdiff - src/univ/topluniv.cpp
compilation fix for recent commit
[wxWidgets.git] / src / univ / topluniv.cpp
index 27a2633365e09d7dd35c63a5240c98b7a4a8e2f7..6dceed79d762bf611e01f4ed19484a2efbc160bd 100644 (file)
@@ -79,7 +79,7 @@ bool wxTopLevelWindow::Create(wxWindow *parent,
     if ( ms_drawDecorations == -1 )
     {
         ms_drawDecorations = 
-            !wxSystemSettings::GetCapability(wxSYS_CAN_DRAW_FRAME_DECORATIONS) 
+            !wxSystemSettings::HasFeature(wxSYS_CAN_DRAW_FRAME_DECORATIONS) 
             || wxGetEnv(wxT("WXDECOR"), NULL);
         // FIXME -- wxUniv should provide a way to force non-native decorations!
         //          $WXDECOR is just a hack in absence of better wxUniv solution
@@ -87,7 +87,7 @@ bool wxTopLevelWindow::Create(wxWindow *parent,
 
     if ( ms_canIconize == -1 )
     {
-        ms_canIconize = wxSystemSettings::GetCapability(wxSYS_CAN_ICONIZE_FRAME);
+        ms_canIconize = wxSystemSettings::HasFeature(wxSYS_CAN_ICONIZE_FRAME);
     }
 
     if ( ms_drawDecorations )
@@ -265,7 +265,7 @@ long wxTopLevelWindow::HitTest(const wxPoint& pt) const
     wxTopLevelWindowNative::DoGetClientSize(&w, &h);
     wxRect rect(wxTopLevelWindowNative::GetClientAreaOrigin(), wxSize(w, h));
 
-    return m_renderer->HitTestFrame(rect, pt, GetDecorationsStyle());
+    return m_renderer->HitTestFrame(rect, pt+GetClientAreaOrigin(), GetDecorationsStyle());
 }
 
 // ----------------------------------------------------------------------------