]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/graphcmn.cpp
Compilation fixes for wx{X11,GTK1,Motif} after making ref data non copyable.
[wxWidgets.git] / src / common / graphcmn.cpp
index 0c24351e7e2b049f43a8a2b4e4cf476739fd64f1..99a42c8a958c84e6ff14e25cff6ce0e261eabbee 100644 (file)
@@ -870,16 +870,15 @@ wxGraphicsBitmap wxGraphicsContext::CreateSubBitmap( const wxGraphicsBitmap &bmp
 {
     return wxGraphicsRenderer::GetDefaultRenderer()->CreateContext(dc);
 }
+#endif
 
-#ifdef __WXMSW__
+#if wxUSE_ENH_METAFILE
 /* static */ wxGraphicsContext* wxGraphicsContext::Create( const wxEnhMetaFileDC& dc)
 {
     return wxGraphicsRenderer::GetDefaultRenderer()->CreateContext(dc);
 }
 #endif
 
-#endif // wxUSE_PRINTING_ARCHITECTURE
-
 wxGraphicsContext* wxGraphicsContext::CreateFromNative( void * context )
 {
     return wxGraphicsRenderer::GetDefaultRenderer()->CreateContextFromNativeContext(context);