]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/dcclient.cpp
file dialog now remebers list/report and hidden files settings, displays icons for...
[wxWidgets.git] / src / mac / dcclient.cpp
index 08aeff0504b08756924ad120d8b3b94c8ace8340..12100b81cdef2320b31f5b789f8db2b4825eac2a 100644 (file)
 // wxPaintDC
 //-----------------------------------------------------------------------------
 
-#if !USE_SHARED_LIBRARY
 IMPLEMENT_DYNAMIC_CLASS(wxWindowDC, wxDC)
 IMPLEMENT_DYNAMIC_CLASS(wxClientDC, wxWindowDC)
 IMPLEMENT_DYNAMIC_CLASS(wxPaintDC, wxWindowDC)
-#endif
 
 /*
  * wxWindowDC
@@ -78,8 +76,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 +106,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()