setting CG origin to printable area
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35384 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -180,7 +180,9 @@ void wxMacCarbonPrinterDC::StartPage( wxPrinterDC* dc )
|
|||||||
if ( !m_err )
|
if ( !m_err )
|
||||||
{
|
{
|
||||||
#if wxMAC_USE_CORE_GRAPHICS
|
#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 ) ;
|
CGContextScaleCTM( pageContext , 1 , -1 ) ;
|
||||||
CGContextSaveGState( pageContext ) ;
|
CGContextSaveGState( pageContext ) ;
|
||||||
#else
|
#else
|
||||||
|
Reference in New Issue
Block a user