X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5942996c94a82dcbedf7b1041b08acd8d1d97449..1ed6bbc207af50ec0c21cdfecfe317d603fa747f:/src/dfb/dcmemory.cpp?ds=sidebyside diff --git a/src/dfb/dcmemory.cpp b/src/dfb/dcmemory.cpp index bb9171db67..036fcb81e1 100644 --- a/src/dfb/dcmemory.cpp +++ b/src/dfb/dcmemory.cpp @@ -39,8 +39,10 @@ IMPLEMENT_DYNAMIC_CLASS(wxMemoryDC, wxDC) -wxMemoryDC::wxMemoryDC() +wxMemoryDC::wxMemoryDC( const wxBitmap& bitmap ) { + if ( bitmap.IsOk() ) + SelectObject(bitmap); } wxMemoryDC::wxMemoryDC(wxDC *WXUNUSED(dc))