X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f38924e863cd44e2abd49d20d201d72aa773c51e..b0b96f667dbc2fc2d3ebaa342c50bdea10f84a91:/src/mac/classic/dcmemory.cpp diff --git a/src/mac/classic/dcmemory.cpp b/src/mac/classic/dcmemory.cpp index 32949efa75..ad765139d9 100644 --- a/src/mac/classic/dcmemory.cpp +++ b/src/mac/classic/dcmemory.cpp @@ -21,7 +21,7 @@ IMPLEMENT_DYNAMIC_CLASS(wxMemoryDC,wxPaintDC) -wxMemoryDC::wxMemoryDC(void) +wxMemoryDC::wxMemoryDC( const wxBitmap& bitmap ) : m_selected() { m_ok = true; @@ -29,6 +29,9 @@ wxMemoryDC::wxMemoryDC(void) SetBrush(*wxWHITE_BRUSH); SetPen(*wxBLACK_PEN); m_ok = false; + + if ( bitmap.IsOk() ) + SelectObject(bitmap); }; wxMemoryDC::wxMemoryDC( wxDC *WXUNUSED(dc) )