X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cc44c7102fbab987280ad2dca7eb1e85ac70a9f6..c8e597f84a5e6b34d948de407f556efb4c540931:/src/mac/carbon/dcscreen.cpp diff --git a/src/mac/carbon/dcscreen.cpp b/src/mac/carbon/dcscreen.cpp index 302e73a643..85f092c8f0 100644 --- a/src/mac/carbon/dcscreen.cpp +++ b/src/mac/carbon/dcscreen.cpp @@ -9,18 +9,12 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) -#pragma implementation "dcscreen.h" -#endif - #include "wx/wxprec.h" #include "wx/dcscreen.h" #include "wx/mac/uma.h" -#if !USE_SHARED_LIBRARY IMPLEMENT_DYNAMIC_CLASS(wxScreenDC, wxWindowDC) -#endif // Create a DC representing the whole screen wxScreenDC::wxScreenDC() @@ -34,7 +28,9 @@ wxScreenDC::wxScreenDC() SetPort( port ) ; m_macLocalOrigin.x = -pt.h ; m_macLocalOrigin.y = -pt.v ; - +#if wxMAC_USE_CORE_GRAPHICS + m_macLocalOriginInPort = m_macLocalOrigin ; +#endif BitMap screenBits; GetQDGlobalsScreenBits( &screenBits ); m_minX = screenBits.bounds.left ;