X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8907154c1a8a6882c6797d1f16393ddfb23e7f3a..3f4a2351e4c677c88c18ea812b609477adee7380:/src/mac/classic/dcscreen.cpp?ds=sidebyside diff --git a/src/mac/classic/dcscreen.cpp b/src/mac/classic/dcscreen.cpp index bbfbc77964..65f4ef442d 100644 --- a/src/mac/classic/dcscreen.cpp +++ b/src/mac/classic/dcscreen.cpp @@ -1,15 +1,18 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: dcscreen.cpp +// Name: src/mac/classic/dcscreen.cpp // Purpose: wxScreenDC class // Author: Stefan Csomor // Modified by: // Created: 1998-01-01 // RCS-ID: $Id$ // Copyright: (c) Stefan Csomor -// Licence: wxWindows licence +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// +#include "wx/wxprec.h" + #include "wx/dcscreen.h" + #include "wx/mac/uma.h" IMPLEMENT_DYNAMIC_CLASS(wxScreenDC, wxWindowDC) @@ -23,7 +26,7 @@ wxScreenDC::wxScreenDC() GetPort( &port ) ; SetPort( (GrafPtr) m_macPort ) ; Point pt = { 0,0 } ; - LocalToGlobal( &pt ) ; + LocalToGlobal( &pt ) ; SetPort( port ) ; m_macLocalOrigin.x = -pt.h ; m_macLocalOrigin.y = -pt.v ; @@ -32,17 +35,17 @@ wxScreenDC::wxScreenDC() m_macLocalOrigin.x = 0 ; m_macLocalOrigin.y = 0 ; #endif - m_ok = TRUE ; + m_ok = true ; BitMap screenBits; GetQDGlobalsScreenBits( &screenBits ); - m_minX = screenBits.bounds.left ; - #if TARGET_CARBON - SInt16 height ; - GetThemeMenuBarHeight( &height ) ; - m_minY = screenBits.bounds.top + height ; - #else - m_minY = screenBits.bounds.top + LMGetMBarHeight() ; - #endif + m_minX = screenBits.bounds.left ; +#if TARGET_CARBON + SInt16 height ; + GetThemeMenuBarHeight( &height ) ; + m_minY = screenBits.bounds.top + height ; +#else + m_minY = screenBits.bounds.top + LMGetMBarHeight() ; +#endif m_maxX = screenBits.bounds.right ; m_maxY = screenBits.bounds.bottom ; MacSetRectRgn( (RgnHandle) m_macBoundaryClipRgn , m_minX , m_minY , m_maxX , m_maxY ) ; @@ -54,4 +57,3 @@ wxScreenDC::~wxScreenDC() { // TODO } -