]> git.saurik.com Git - wxWidgets.git/commitdiff
64/32 bit fixes
authorStefan Csomor <csomor@advancedconcepts.ch>
Thu, 6 Mar 2008 12:20:28 +0000 (12:20 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Thu, 6 Mar 2008 12:20:28 +0000 (12:20 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52357 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/dcprint.cpp

index aacf643f193c514851d62fd7ce12f5e2dea9791d..ccc58d99ffcf845534d3988aeffa3b732446948a 100644 (file)
@@ -217,7 +217,7 @@ void wxMacCarbonPrinterDC::StartPage( wxPrinterDC* dc )
             PMGetAdjustedPaperRect( native->m_macPageFormat , &paperRect ) ;
             // make sure (0,0) is at the upper left of the printable area (wx conventions)
             // Core Graphics initially has the lower left of the paper as 0,0
-            CGContextTranslateCTM( pageContext , -paperRect.left , paperRect.bottom ) ;
+            CGContextTranslateCTM( pageContext , (CGFloat) -paperRect.left , (CGFloat) paperRect.bottom ) ;
             CGContextScaleCTM( pageContext , 1 , -1 ) ;
         }
         // since this is a non-critical error, we set the flag back