X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/772f15b4d744875a969a03f5fa8419c7681d9b2f..7bf2b0881a6bf28138f258504e88b2643daa854e:/src/common/graphcmn.cpp?ds=sidebyside diff --git a/src/common/graphcmn.cpp b/src/common/graphcmn.cpp index 3b3c05d9d2..d3166c26dd 100644 --- a/src/common/graphcmn.cpp +++ b/src/common/graphcmn.cpp @@ -790,12 +790,17 @@ wxGraphicsBitmap wxGraphicsContext::CreateSubBitmap( const wxGraphicsBitmap &bmp #endif } -wxGraphicsContext* wxGraphicsContext::Create( const wxWindowDC& dc) +/* static */ wxGraphicsContext* wxGraphicsContext::Create( const wxWindowDC& dc) { return wxGraphicsRenderer::GetDefaultRenderer()->CreateContext(dc); } -wxGraphicsContext* wxGraphicsContext::Create( const wxMemoryDC& dc) +/* static */ wxGraphicsContext* wxGraphicsContext::Create( const wxMemoryDC& dc) +{ + return wxGraphicsRenderer::GetDefaultRenderer()->CreateContext(dc); +} + +/* static */ wxGraphicsContext* wxGraphicsContext::Create( const wxPrinterDC& dc) { return wxGraphicsRenderer::GetDefaultRenderer()->CreateContext(dc); }