summaryrefslogtreecommitdiff
path: root/vcl/inc
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2013-06-03 16:51:02 +0300
committerTor Lillqvist <tml@iki.fi>2013-06-03 16:52:20 +0300
commit6c2d27b0a61d8851a1df7545aa391dfb4d0d77c8 (patch)
tree1daad721dc575980fb1205c97ad35593114b3373 /vcl/inc
parent3505f0e46c2e0a743ab5de9adfbec3044a4573a6 (diff)
Fix 64-bit build
When compiling as 64-bit code, NSRect *is* CGRect. Change-Id: Ia14db1354251bd2a2f53fd9d02dc2816ccef2b17
Diffstat (limited to 'vcl/inc')
-rw-r--r--vcl/inc/coretext/salgdi2.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/vcl/inc/coretext/salgdi2.h b/vcl/inc/coretext/salgdi2.h
index 90fb594b9e8c..76937376668f 100644
--- a/vcl/inc/coretext/salgdi2.h
+++ b/vcl/inc/coretext/salgdi2.h
@@ -199,7 +199,9 @@ public:
bool CheckContext();
CGContextRef GetContext();
void UpdateWindow( NSRect& ); // delivered in NSView coordinates
+#if !defined(__LP64__) && !defined(NS_BUILD_32_LIKE_64)
void RefreshRect( const CGRect& );
+#endif
void RefreshRect( const NSRect& );
void RefreshRect(float lX, float lY, float lWidth, float lHeight);
@@ -217,7 +219,7 @@ public:
virtual void drawRect( long nX, long nY, long nWidth, long nHeight );
virtual void drawPolyLine( sal_uLong nPoints, const SalPoint* pPtAry );
virtual void drawPolygon( sal_uLong nPoints, const SalPoint* pPtAry );
- virtual void drawPolyPolygon( sal_uInt32 nPoly, const sal_uLong* pPoints, PCONSTSALPOINT* pPtAry );
+ virtual void drawPolyPolygon( sal_uInt32 nPoly, const sal_uInt32* pPoints, PCONSTSALPOINT* pPtAry );
virtual bool drawPolyPolygon( const ::basegfx::B2DPolyPolygon&, double fTransparency );
virtual sal_Bool drawPolyLineBezier( sal_uLong nPoints, const SalPoint* pPtAry, const sal_uInt8* pFlgAry );
virtual sal_Bool drawPolygonBezier( sal_uLong nPoints, const SalPoint* pPtAry, const sal_uInt8* pFlgAry );
@@ -398,11 +400,15 @@ private:
// --- some trivial inlines
+#if !defined(__LP64__) && !defined(NS_BUILD_32_LIKE_64)
+
inline void AquaSalGraphics::RefreshRect( const CGRect& rRect )
{
RefreshRect( rRect.origin.x, rRect.origin.y, rRect.size.width, rRect.size.height );
}
+#endif
+
inline void AquaSalGraphics::RefreshRect( const NSRect& rRect )
{
RefreshRect( rRect.origin.x, rRect.origin.y, rRect.size.width, rRect.size.height );