X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3784bf308fe29d37b723a9601517fb97559ba39c..3da9cffc79cd41b5f1d0c517c8c945596751e86f:/src/common/graphcmn.cpp diff --git a/src/common/graphcmn.cpp b/src/common/graphcmn.cpp index 7ab4da0b5c..5bc8a8824a 100644 --- a/src/common/graphcmn.cpp +++ b/src/common/graphcmn.cpp @@ -872,6 +872,15 @@ 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 ) { return wxGraphicsRenderer::GetDefaultRenderer()->CreateContextFromNativeContext(context);