X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3e0071d949c302b17d6459de98c5cf42600d96fe..ce7208d49d5ce2ca1dc0b3b83f14f1d04f29c4bf:/src/motif/dcmemory.cpp diff --git a/src/motif/dcmemory.cpp b/src/motif/dcmemory.cpp index 0f2eb13bff..789dac864d 100644 --- a/src/motif/dcmemory.cpp +++ b/src/motif/dcmemory.cpp @@ -35,7 +35,7 @@ IMPLEMENT_DYNAMIC_CLASS(wxMemoryDC, wxWindowDC) -wxMemoryDC::wxMemoryDC(void) +wxMemoryDC::wxMemoryDC( const wxBitmap& bitmap ) { m_ok = true; m_display = wxGetDisplay(); @@ -57,6 +57,9 @@ wxMemoryDC::wxMemoryDC(void) SetBrush (* wxWHITE_BRUSH); SetPen (* wxBLACK_PEN); SetFont(wxSystemSettings::GetFont(wxSYS_DEFAULT_GUI_FONT)); + + if ( bitmap.IsOk() ) + SelectObject(bitmap); } wxMemoryDC::wxMemoryDC( wxDC* dc )