X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cc44c7102fbab987280ad2dca7eb1e85ac70a9f6..6ac23e25b85468c7885f6ab43ca0a45f6458af2e:/src/mac/carbon/dcscreen.cpp diff --git a/src/mac/carbon/dcscreen.cpp b/src/mac/carbon/dcscreen.cpp index 302e73a643..3ad0142409 100644 --- a/src/mac/carbon/dcscreen.cpp +++ b/src/mac/carbon/dcscreen.cpp @@ -18,9 +18,7 @@ #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 +32,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 ;