]>
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( const wxBitmap
& bitmap
)
48 wxMemoryDC::wxMemoryDC(wxDC
*WXUNUSED(dc
))
52 void wxMemoryDC::SelectObject(const wxBitmap
& bitmap
)
58 // select the bitmap out of the DC
63 // init the DC for drawing to this bitmap
64 Init(bitmap
.GetDirectFBSurface());