]>
git.saurik.com Git - wxWidgets.git/blob - src/dfb/dcmemory.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: src/dfb/dcmemory.cpp
3 // Purpose: wxMemoryDCImpl implementation
4 // Author: Vaclav Slavik
6 // Copyright: (c) 2006 REA Elektronik GmbH
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
10 // ===========================================================================
12 // ===========================================================================
14 // ---------------------------------------------------------------------------
16 // ---------------------------------------------------------------------------
18 // For compilers that support precompilation, includes "wx.h".
19 #include "wx/wxprec.h"
22 #include "wx/bitmap.h"
25 #include "wx/dcmemory.h"
26 #include "wx/dfb/dcmemory.h"
27 #include "wx/dfb/private.h"
29 // ===========================================================================
31 // ===========================================================================
33 //-----------------------------------------------------------------------------
35 //-----------------------------------------------------------------------------
37 #warning "FIXME: verify/fix that wxMemoryDCImpl works correctly with mono bitmaps"
39 IMPLEMENT_ABSTRACT_CLASS(wxMemoryDCImpl
, wxDFBDCImpl
)
41 void wxMemoryDCImpl::Init()
45 wxMemoryDCImpl::wxMemoryDCImpl(wxMemoryDC
*owner
)
51 wxMemoryDCImpl::wxMemoryDCImpl(wxMemoryDC
*owner
, wxBitmap
& bitmap
)
58 wxMemoryDCImpl::wxMemoryDCImpl(wxMemoryDC
*owner
, wxDC
*WXUNUSED(dc
))
63 void wxMemoryDCImpl::DoSelect(const wxBitmap
& bitmap
)
69 // select the bitmap out of the DC
74 // init the DC for drawing to this bitmap
75 DFBInit(bitmap
.GetDirectFBSurface());