]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/dcclient.cpp
VTK wrapper of vtkRenderWindow for wxPython. Tested on MSW so far.
[wxWidgets.git] / src / mac / dcclient.cpp
index 08aeff0504b08756924ad120d8b3b94c8ace8340..b4155b572dd7d7439d34543614805206476e5d39 100644 (file)
@@ -78,8 +78,8 @@ wxClientDC::wxClientDC(wxWindow *window)
        m_macPort = UMAGetWindowPort( windowref ) ;
        MacSetupPort() ;
        m_ok = TRUE ;
-  SetBackground(wxBrush(window->GetBackgroundColour(), wxSOLID));
-
+       SetBackground(wxBrush(window->GetBackgroundColour(), wxSOLID));
+       SetFont( window->GetFont() ) ;
 }
 
 wxClientDC::~wxClientDC(void)
@@ -108,6 +108,7 @@ wxPaintDC::wxPaintDC(wxWindow *window)
        window->GetUpdateRegion().GetBox( x , y , w , h ) ;
        SetClippingRegion( x , y , w , h ) ;
        SetBackground(wxBrush(window->GetBackgroundColour(), wxSOLID));
+       SetFont(window->GetFont() ) ;
 }
 
 wxPaintDC::~wxPaintDC()