X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5f5f809d57694ccca5c80245f98fe05170962194..2289dcea2ba6b6c1ef9dd9076fb9c632fe009f89:/src/mac/carbon/dcclient.cpp?ds=sidebyside diff --git a/src/mac/carbon/dcclient.cpp b/src/mac/carbon/dcclient.cpp index 07d0f431fc..1d9ee2a5f4 100644 --- a/src/mac/carbon/dcclient.cpp +++ b/src/mac/carbon/dcclient.cpp @@ -9,17 +9,19 @@ // 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" #include "wx/window.h" #include "wx/toplevel.h" #include "wx/settings.h" -#include +#include "wx/math.h" #include "wx/mac/private.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() ) ; }