X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b3c861501a451503b31c075ccb59d16b0ae01e99..9d5507f7a2701395e1d5c121bd877bb9066ee6ea:/src/dfb/dcmemory.cpp diff --git a/src/dfb/dcmemory.cpp b/src/dfb/dcmemory.cpp index 435667e3cd..5ab26cb37f 100644 --- a/src/dfb/dcmemory.cpp +++ b/src/dfb/dcmemory.cpp @@ -39,7 +39,7 @@ IMPLEMENT_DYNAMIC_CLASS(wxMemoryDC, wxDC) -wxMemoryDC::wxMemoryDC() +void wxMemoryDC::Init() { } @@ -47,8 +47,10 @@ wxMemoryDC::wxMemoryDC(wxDC *WXUNUSED(dc)) { } -void wxMemoryDC::SelectObject(const wxBitmap& bitmap) +void wxMemoryDC::DoSelect(const wxBitmap& bitmap) { + m_bmp = bitmap; + if ( !bitmap.Ok() ) { // select the bitmap out of the DC @@ -57,5 +59,5 @@ void wxMemoryDC::SelectObject(const wxBitmap& bitmap) } // init the DC for drawing to this bitmap - Init(bitmap.GetDirectFBSurface()); + DFBInit(bitmap.GetDirectFBSurface()); }