]>
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
7 // Copyright: (c) 2006 REA Elektronik GmbH
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
11 // ===========================================================================
13 // ===========================================================================
15 // ---------------------------------------------------------------------------
17 // ---------------------------------------------------------------------------
19 // For compilers that support precompilation, includes "wx.h".
20 #include "wx/wxprec.h"
23 #include "wx/bitmap.h"
26 #include "wx/dcmemory.h"
27 #include "wx/dfb/dcmemory.h"
28 #include "wx/dfb/private.h"
30 // ===========================================================================
32 // ===========================================================================
34 //-----------------------------------------------------------------------------
36 //-----------------------------------------------------------------------------
38 #warning "FIXME: verify/fix that wxMemoryDCImpl works correctly with mono bitmaps"
40 IMPLEMENT_ABSTRACT_CLASS(wxMemoryDCImpl
, wxDFBDCImpl
)
42 void wxMemoryDCImpl::Init()
46 wxMemoryDCImpl::wxMemoryDCImpl(wxMemoryDC
*owner
)
52 wxMemoryDCImpl::wxMemoryDCImpl(wxMemoryDC
*owner
, wxBitmap
& bitmap
)
59 wxMemoryDCImpl::wxMemoryDCImpl(wxMemoryDC
*owner
, wxDC
*WXUNUSED(dc
))
64 void wxMemoryDCImpl::DoSelect(const wxBitmap
& bitmap
)
70 // select the bitmap out of the DC
75 // init the DC for drawing to this bitmap
76 DFBInit(bitmap
.GetDirectFBSurface());