]> git.saurik.com Git - wxWidgets.git/commitdiff
we have to force live updates under OSX as there is no ScreenDC on OSX available...
authorStefan Csomor <csomor@advancedconcepts.ch>
Wed, 4 Aug 2004 13:13:16 +0000 (13:13 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Wed, 4 Aug 2004 13:13:16 +0000 (13:13 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28618 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/splitter.cpp

index 22c09bc9ff710f2ad6e8466aebceca9d93d52a62..03422af4029837f0fd61314fbe64eedde0b98621 100644 (file)
@@ -200,8 +200,11 @@ void wxSplitterWindow::OnMouseEvent(wxMouseEvent& event)
     // following the mouse movement while it drags the sash, without it we only
     // draw the sash at the new position but only resize the windows when the
     // dragging is finished
+#ifdef __WXMAC__ && TARGET_API_MAC_OSX == 1
+    bool isLive = true ;
+#else
     bool isLive = (GetWindowStyleFlag() & wxSP_LIVE_UPDATE) != 0;
-
+#endif
     if (event.LeftDown())
     {
         if ( SashHitTest(x, y) )