]>
git.saurik.com Git - wxWidgets.git/blob - src/dfb/dcmemory.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: src/dfb/dcmemory.cpp
3 // Purpose: wxMemoryDC 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"
22 #include "wx/dcmemory.h"
25 #include "wx/bitmap.h"
28 #include "wx/dfb/private.h"
30 // ===========================================================================
32 // ===========================================================================
34 //-----------------------------------------------------------------------------
36 //-----------------------------------------------------------------------------
38 #warning "FIXME: verify/fix that wxMemoryDC works correctly with mono bitmaps"
40 IMPLEMENT_DYNAMIC_CLASS(wxMemoryDC
, wxDC
)
42 wxMemoryDC::wxMemoryDC()
46 wxMemoryDC::wxMemoryDC(wxDC
*WXUNUSED(dc
))
50 void wxMemoryDC::SelectObject(const wxBitmap
& bitmap
)
56 // select the bitmap out of the DC
61 // init the DC for drawing to this bitmap
62 Init(bitmap
.GetDirectFBSurface());