#include "wx/bitmap.h"
#endif
+#include "wx/dcmemory.h"
#include "wx/dfb/dcmemory.h"
#include "wx/dfb/private.h"
{
}
+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)
{
{
m_bmp = bitmap;
- if ( !bitmap.Ok() )
+ if ( !bitmap.IsOk() )
{
// select the bitmap out of the DC
m_surface = NULL;