projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
remove wxSETranslator() entirely from wxUSE_ON_FATAL_EXCEPTION==0 build (part of...
[wxWidgets.git]
/
src
/
common
/
graphcmn.cpp
diff --git
a/src/common/graphcmn.cpp
b/src/common/graphcmn.cpp
index 3b3c05d9d2d67be959c261f4def32b297150d57f..49a2a879676dfc4880d8419a89a1ef59feba48f6 100644
(file)
--- a/
src/common/graphcmn.cpp
+++ b/
src/common/graphcmn.cpp
@@
-790,16
+790,23
@@
wxGraphicsBitmap wxGraphicsContext::CreateSubBitmap( const wxGraphicsBitmap &bmp
#endif
}
#endif
}
-wxGraphicsContext* wxGraphicsContext::Create( const wxWindowDC& dc)
+
/* static */
wxGraphicsContext* wxGraphicsContext::Create( const wxWindowDC& dc)
{
return wxGraphicsRenderer::GetDefaultRenderer()->CreateContext(dc);
}
{
return wxGraphicsRenderer::GetDefaultRenderer()->CreateContext(dc);
}
-wxGraphicsContext* wxGraphicsContext::Create( const wxMemoryDC& dc)
+
/* static */
wxGraphicsContext* wxGraphicsContext::Create( const wxMemoryDC& dc)
{
return wxGraphicsRenderer::GetDefaultRenderer()->CreateContext(dc);
}
{
return wxGraphicsRenderer::GetDefaultRenderer()->CreateContext(dc);
}
+#if wxUSE_PRINTING_ARCHITECTURE
+/* static */ wxGraphicsContext* wxGraphicsContext::Create( const wxPrinterDC& dc)
+{
+ return wxGraphicsRenderer::GetDefaultRenderer()->CreateContext(dc);
+}
+#endif
+
wxGraphicsContext* wxGraphicsContext::CreateFromNative( void * context )
{
return wxGraphicsRenderer::GetDefaultRenderer()->CreateContextFromNativeContext(context);
wxGraphicsContext* wxGraphicsContext::CreateFromNative( void * context )
{
return wxGraphicsRenderer::GetDefaultRenderer()->CreateContextFromNativeContext(context);