X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/519cb848a8f4c91c73421bb75314754284e593a4..8290d43d0d43369d007f1c47abf98a45da461a30:/src/mac/dcclient.cpp diff --git a/src/mac/dcclient.cpp b/src/mac/dcclient.cpp index 08aeff0504..12100b81cd 100644 --- a/src/mac/dcclient.cpp +++ b/src/mac/dcclient.cpp @@ -28,11 +28,9 @@ // 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()