X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8907154c1a8a6882c6797d1f16393ddfb23e7f3a..67193066b2d16ca36529216f70d093690d7e1123:/src/mac/classic/dcclient.cpp diff --git a/src/mac/classic/dcclient.cpp b/src/mac/classic/dcclient.cpp index 6c8fbe9f18..9d7133b6e8 100644 --- a/src/mac/classic/dcclient.cpp +++ b/src/mac/classic/dcclient.cpp @@ -1,20 +1,26 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: dcclient.cpp +// Name: src/mac/classic/dcclient.cpp // Purpose: wxClientDC class // Author: Stefan Csomor // Modified by: // Created: 01/02/97 // RCS-ID: $Id$ // Copyright: (c) Stefan Csomor -// Licence: wxWindows licence +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// +#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/math.h" + +#ifndef WX_PRECOMP + #include "wx/window.h" + #include "wx/dcmemory.h" + #include "wx/toplevel.h" + #include "wx/math.h" + #include "wx/region.h" +#endif + #include "wx/mac/private.h" //----------------------------------------------------------------------------- @@ -37,17 +43,17 @@ IMPLEMENT_DYNAMIC_CLASS(wxPaintDC, wxWindowDC) #include "wx/mac/uma.h" -wxWindowDC::wxWindowDC() +wxWindowDC::wxWindowDC() { m_window = NULL ; } -wxWindowDC::wxWindowDC(wxWindow *window) +wxWindowDC::wxWindowDC(wxWindow *window) { m_window = window ; wxTopLevelWindowMac* rootwindow = window->MacGetTopLevelWindow() ; WindowRef windowref = (WindowRef) rootwindow->MacGetWindowRef() ; - + int x , y ; x = y = 0 ; window->MacWindowToRootWindow( &x , &y ) ; @@ -57,7 +63,7 @@ wxWindowDC::wxWindowDC(wxWindow *window) OffsetRgn( (RgnHandle) m_macBoundaryClipRgn , m_macLocalOrigin.x , m_macLocalOrigin.y ) ; CopyRgn( (RgnHandle) m_macBoundaryClipRgn , (RgnHandle) m_macCurrentClipRgn ) ; m_macPort = UMAGetWindowPort( windowref ) ; - m_ok = TRUE ; + m_ok = true ; SetBackground(window->MacGetBackgroundBrush()); } @@ -103,7 +109,7 @@ wxClientDC::wxClientDC(wxWindow *window) CopyRgn( (RgnHandle) m_macBoundaryClipRgn ,(RgnHandle) m_macCurrentClipRgn ) ; m_macPort = UMAGetWindowPort( windowref ) ; - m_ok = TRUE ; + m_ok = true ; SetBackground(window->MacGetBackgroundBrush()); SetFont( window->GetFont() ) ; } @@ -150,7 +156,7 @@ wxPaintDC::wxPaintDC(wxWindow *window) CopyRgn( (RgnHandle) m_macBoundaryClipRgn , (RgnHandle) m_macCurrentClipRgn ) ; m_macPort = UMAGetWindowPort( windowref ) ; - m_ok = TRUE ; + m_ok = true ; SetBackground(window->MacGetBackgroundBrush()); SetFont( window->GetFont() ) ; } @@ -165,5 +171,3 @@ void wxPaintDC::DoGetSize(int *width, int *height) const m_window->GetClientSize( width, height ); } - -