X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/432efcb004c8a7f4997acab1aa044c78226c36bb..9d5507f7a2701395e1d5c121bd877bb9066ee6ea:/src/dfb/dcmemory.cpp diff --git a/src/dfb/dcmemory.cpp b/src/dfb/dcmemory.cpp index 036fcb81e1..5ab26cb37f 100644 --- a/src/dfb/dcmemory.cpp +++ b/src/dfb/dcmemory.cpp @@ -39,17 +39,15 @@ IMPLEMENT_DYNAMIC_CLASS(wxMemoryDC, wxDC) -wxMemoryDC::wxMemoryDC( const wxBitmap& bitmap ) +void wxMemoryDC::Init() { - if ( bitmap.IsOk() ) - SelectObject(bitmap); } wxMemoryDC::wxMemoryDC(wxDC *WXUNUSED(dc)) { } -void wxMemoryDC::SelectObject(const wxBitmap& bitmap) +void wxMemoryDC::DoSelect(const wxBitmap& bitmap) { m_bmp = bitmap; @@ -61,5 +59,5 @@ void wxMemoryDC::SelectObject(const wxBitmap& bitmap) } // init the DC for drawing to this bitmap - Init(bitmap.GetDirectFBSurface()); + DFBInit(bitmap.GetDirectFBSurface()); }