X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c725df80c56ac9d229a569fe1a7d36eff78a4574..2353544718a1aff4e12c75c823aa4136d2304027:/src/mac/carbon/dcprint.cpp?ds=sidebyside diff --git a/src/mac/carbon/dcprint.cpp b/src/mac/carbon/dcprint.cpp index 87f5ec2ad4..a7d3de26e9 100644 --- a/src/mac/carbon/dcprint.cpp +++ b/src/mac/carbon/dcprint.cpp @@ -9,10 +9,6 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) -#pragma implementation "dcprint.h" -#endif - // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" @@ -180,7 +176,9 @@ void wxMacCarbonPrinterDC::StartPage( wxPrinterDC* dc ) if ( !m_err ) { #if wxMAC_USE_CORE_GRAPHICS - CGContextTranslateCTM( pageContext , 0 , rPage.bottom - rPage.top ) ; + PMRect paperRect ; + PMGetAdjustedPaperRect( native->m_macPageFormat , &paperRect ) ; + CGContextTranslateCTM( pageContext , -paperRect.left , -paperRect.top + ( rPage.bottom - rPage.top ) ) ; CGContextScaleCTM( pageContext , 1 , -1 ) ; CGContextSaveGState( pageContext ) ; #else