]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/tooltip.cpp
added clientcontext variable to Open Transport initialisation
[wxWidgets.git] / src / mac / carbon / tooltip.cpp
index ada78751e77358e00532c012bb364d23ed2f0480..eb92ed996e03588510a1d2124dadba118b320a64 100644 (file)
@@ -16,6 +16,7 @@
 #if wxUSE_TOOLTIPS
 
 #include "wx/app.h"
 #if wxUSE_TOOLTIPS
 
 #include "wx/app.h"
+#include "wx/dc.h"
 #include "wx/window.h"
 #include "wx/tooltip.h"
 #include "wx/timer.h"
 #include "wx/window.h"
 #include "wx/tooltip.h"
 #include "wx/timer.h"
@@ -295,6 +296,7 @@ void wxMacToolTip::Draw()
                                        
                ::DrawText( text , laststop , i - laststop ) ;
                ::TextMode( srcOr ) ;
                                        
                ::DrawText( text , laststop , i - laststop ) ;
                ::TextMode( srcOr ) ;
+               wxDC::MacInvalidateSetup() ;
                
        //      DrawText( m_label , 0 , m_label.Length() ) ;
        }
                
        //      DrawText( m_label , 0 , m_label.Length() ) ;
        }
@@ -329,6 +331,7 @@ void wxMacToolTip::Clear()
                DrawPicture(m_backpict, &m_rect);
                KillPicture(m_backpict);
                m_backpict = NULL ;
                DrawPicture(m_backpict, &m_rect);
                KillPicture(m_backpict);
                m_backpict = NULL ;
+               wxDC::MacInvalidateSetup() ;
        }
 }
 
        }
 }