X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4a624f6ed375e4dbf126743ff1068486cb5241a2..94e0018723919fe2ca2f5b5f0a42804c16dbf3a1:/src/dfb/dcmemory.cpp?ds=sidebyside diff --git a/src/dfb/dcmemory.cpp b/src/dfb/dcmemory.cpp index 4f274d960c..8929ca41ce 100644 --- a/src/dfb/dcmemory.cpp +++ b/src/dfb/dcmemory.cpp @@ -23,6 +23,7 @@ #include "wx/bitmap.h" #endif +#include "wx/dcmemory.h" #include "wx/dfb/dcmemory.h" #include "wx/dfb/private.h" @@ -42,6 +43,19 @@ void wxMemoryDCImpl::Init() { } +wxMemoryDCImpl::wxMemoryDCImpl(wxMemoryDC *owner) + : wxDFBDCImpl(owner) +{ + Init(); +} + +wxMemoryDCImpl::wxMemoryDCImpl(wxMemoryDC *owner, wxBitmap& bitmap) + : wxDFBDCImpl(owner) +{ + Init(); + DoSelect(bitmap); +} + wxMemoryDCImpl::wxMemoryDCImpl(wxMemoryDC *owner, wxDC *WXUNUSED(dc)) : wxDFBDCImpl(owner) { @@ -51,7 +65,7 @@ void wxMemoryDCImpl::DoSelect(const wxBitmap& bitmap) { m_bmp = bitmap; - if ( !bitmap.Ok() ) + if ( !bitmap.IsOk() ) { // select the bitmap out of the DC m_surface = NULL;