X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/463c4d7193481ac27626b282ccf0ac178f029abd..b409fa19591179c71e10c6d3c88814f2d96f3af9:/src/mac/carbon/dcclient.cpp diff --git a/src/mac/carbon/dcclient.cpp b/src/mac/carbon/dcclient.cpp index 59657f38f5..1d9ee2a5f4 100644 --- a/src/mac/carbon/dcclient.cpp +++ b/src/mac/carbon/dcclient.cpp @@ -9,10 +9,12 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "dcclient.h" #endif +#include "wx/wxprec.h" + #include "wx/dcclient.h" #include "wx/dcmemory.h" #include "wx/region.h" @@ -120,6 +122,7 @@ wxWindowDC::wxWindowDC(wxWindow *window) CopyRgn( (RgnHandle) m_macBoundaryClipRgn , (RgnHandle) m_macCurrentClipRgn ) ; m_macPort = UMAGetWindowPort( windowref ) ; m_ok = TRUE ; + MacSetupGraphicContext() ; SetBackground(MacGetBackgroundBrush(window)); } @@ -166,6 +169,7 @@ wxClientDC::wxClientDC(wxWindow *window) m_macPort = UMAGetWindowPort( windowref ) ; m_ok = TRUE ; + MacSetupGraphicContext() ; SetBackground(MacGetBackgroundBrush(window)); SetFont( window->GetFont() ) ; } @@ -213,6 +217,7 @@ wxPaintDC::wxPaintDC(wxWindow *window) m_macPort = UMAGetWindowPort( windowref ) ; m_ok = TRUE ; + MacSetupGraphicContext() ; SetBackground(MacGetBackgroundBrush(window)); SetFont( window->GetFont() ) ; }