From 29188693b3b8ba4b07762df012cc652d421dae79 Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Sat, 1 Jan 2011 11:10:35 +0000 Subject: [PATCH] bracketing msw enhanced metafile usage git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66514 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/graphics.h | 6 ++++++ src/common/graphcmn.cpp | 2 ++ 2 files changed, 8 insertions(+) diff --git a/include/wx/graphics.h b/include/wx/graphics.h index af13285028..4a2b42c974 100644 --- a/include/wx/graphics.h +++ b/include/wx/graphics.h @@ -58,9 +58,11 @@ class WXDLLIMPEXP_FWD_CORE wxMemoryDC; #if wxUSE_PRINTING_ARCHITECTURE class WXDLLIMPEXP_FWD_CORE wxPrinterDC; #endif +#ifdef __WXMSW__ #if wxUSE_ENH_METAFILE class WXDLLIMPEXP_FWD_CORE wxEnhMetaFileDC; #endif +#endif class WXDLLIMPEXP_FWD_CORE wxGraphicsContext; class WXDLLIMPEXP_FWD_CORE wxGraphicsPath; class WXDLLIMPEXP_FWD_CORE wxGraphicsMatrix; @@ -396,8 +398,10 @@ public: #if wxUSE_PRINTING_ARCHITECTURE static wxGraphicsContext * Create( const wxPrinterDC& dc); #endif +#ifdef __WXMSW__ #if wxUSE_ENH_METAFILE static wxGraphicsContext * Create( const wxEnhMetaFileDC& dc); +#endif #endif static wxGraphicsContext* CreateFromNative( void * context ); @@ -717,8 +721,10 @@ public: #if wxUSE_PRINTING_ARCHITECTURE virtual wxGraphicsContext * CreateContext( const wxPrinterDC& dc) = 0; #endif +#ifdef __WXMSW__ #if wxUSE_ENH_METAFILE virtual wxGraphicsContext * CreateContext( const wxEnhMetaFileDC& dc) = 0; +#endif #endif virtual wxGraphicsContext * CreateContextFromNativeContext( void * context ) = 0; diff --git a/src/common/graphcmn.cpp b/src/common/graphcmn.cpp index 99a42c8a95..5bc8a8824a 100644 --- a/src/common/graphcmn.cpp +++ b/src/common/graphcmn.cpp @@ -872,12 +872,14 @@ wxGraphicsBitmap wxGraphicsContext::CreateSubBitmap( const wxGraphicsBitmap &bmp } #endif +#ifdef __WXMSW__ #if wxUSE_ENH_METAFILE /* static */ wxGraphicsContext* wxGraphicsContext::Create( const wxEnhMetaFileDC& dc) { return wxGraphicsRenderer::GetDefaultRenderer()->CreateContext(dc); } #endif +#endif wxGraphicsContext* wxGraphicsContext::CreateFromNative( void * context ) { -- 2.45.2