]> git.saurik.com Git - wxWidgets.git/blame - src/dfb/dcmemory.cpp
set listview extended styles after switching to report view and not only when creatin...
[wxWidgets.git] / src / dfb / dcmemory.cpp
CommitLineData
b3c86150
VS
1/////////////////////////////////////////////////////////////////////////////
2// Name: src/dfb/dcmemory.cpp
4a624f6e 3// Purpose: wxMemoryDCImpl implementation
b3c86150
VS
4// Author: Vaclav Slavik
5// Created: 2006-08-16
6// RCS-ID: $Id$
7// Copyright: (c) 2006 REA Elektronik GmbH
8// Licence: wxWindows licence
9/////////////////////////////////////////////////////////////////////////////
10
11// ===========================================================================
12// declarations
13// ===========================================================================
14
15// ---------------------------------------------------------------------------
16// headers
17// ---------------------------------------------------------------------------
18
19// For compilers that support precompilation, includes "wx.h".
20#include "wx/wxprec.h"
21
b3c86150
VS
22#ifndef WX_PRECOMP
23 #include "wx/bitmap.h"
24#endif
25
4a624f6e 26#include "wx/dfb/dcmemory.h"
b3c86150
VS
27#include "wx/dfb/private.h"
28
29// ===========================================================================
30// implementation
31// ===========================================================================
32
33//-----------------------------------------------------------------------------
4a624f6e 34// wxMemoryDCImpl
b3c86150
VS
35//-----------------------------------------------------------------------------
36
4a624f6e 37#warning "FIXME: verify/fix that wxMemoryDCImpl works correctly with mono bitmaps"
b3c86150 38
4a624f6e 39IMPLEMENT_ABSTRACT_CLASS(wxMemoryDCImpl, wxDFBDCImpl)
b3c86150 40
4a624f6e 41void wxMemoryDCImpl::Init()
b3c86150
VS
42{
43}
44
4a624f6e
VZ
45wxMemoryDCImpl::wxMemoryDCImpl(wxMemoryDC *owner, wxDC *WXUNUSED(dc))
46 : wxDFBDCImpl(owner)
b3c86150
VS
47{
48}
49
4a624f6e 50void wxMemoryDCImpl::DoSelect(const wxBitmap& bitmap)
b3c86150 51{
5942996c
VS
52 m_bmp = bitmap;
53
b3c86150
VS
54 if ( !bitmap.Ok() )
55 {
56 // select the bitmap out of the DC
57 m_surface = NULL;
58 return;
59 }
60
61 // init the DC for drawing to this bitmap
c16db850 62 DFBInit(bitmap.GetDirectFBSurface());
b3c86150 63}