X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4ee4c7b948e76377a6947d3ffbe5099870d0c3e9..7822ffb1de54dbb0b89e03c3bae89a5ee91c7169:/src/common/graphcmn.cpp?ds=inline diff --git a/src/common/graphcmn.cpp b/src/common/graphcmn.cpp index b014460e0b..0c24351e7e 100644 --- a/src/common/graphcmn.cpp +++ b/src/common/graphcmn.cpp @@ -520,7 +520,7 @@ void wxGraphicsGradientStops::Add(const wxGraphicsGradientStop& stop) } else { - wxFAIL_MSG( "invalid gradient stop position >= 1" ); + wxFAIL_MSG( "invalid gradient stop position > 1" ); } } @@ -870,8 +870,16 @@ wxGraphicsBitmap wxGraphicsContext::CreateSubBitmap( const wxGraphicsBitmap &bmp { return wxGraphicsRenderer::GetDefaultRenderer()->CreateContext(dc); } + +#ifdef __WXMSW__ +/* 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);