From 251163b92cb654ae925cacd1ed469da8efa91e77 Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Wed, 16 May 2007 16:17:31 +0000 Subject: [PATCH] cleanup for Core Graphics / removing QD git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@46071 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/mac/carbon/private.h | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/include/wx/mac/carbon/private.h b/include/wx/mac/carbon/private.h index b4a6f02e9c..e2363eb8b6 100644 --- a/include/wx/mac/carbon/private.h +++ b/include/wx/mac/carbon/private.h @@ -1227,13 +1227,13 @@ public: // returns a Pict from the bitmap content PicHandle GetPictHandle(); -#ifdef __LP64__ - CGContextRef GetHBITMAP(CGContextRef * mask = NULL ) const; +#if wxMAC_USE_CORE_GRAPHICS + CGContextRef GetBitmapContext() const; #else GWorldPtr GetHBITMAP(GWorldPtr * mask = NULL ) const; -#endif void UpdateAlphaMask() const; - +#endif + int GetBytesPerRow() const { return m_bytesPerRow; } private : bool Create(int width , int height , int depth); void Init(); @@ -1251,14 +1251,13 @@ private : #endif IconRef m_iconRef; PicHandle m_pictHandle; - wxMemoryBuffer m_maskMemBuf; - int m_maskBytesPerRow; -#ifdef __LP64__ +#if wxMAC_USE_CORE_GRAPHICS CGContextRef m_hBitmap; - CGContextRef m_hMaskBitmap; #else GWorldPtr m_hBitmap; GWorldPtr m_hMaskBitmap; + wxMemoryBuffer m_maskMemBuf; + int m_maskBytesPerRow; #endif };