+ m_ok = false;
+
+ m_cmap = gtk_widget_get_default_colormap();
+}
+
+wxMemoryDCImpl::wxMemoryDCImpl(wxMemoryDC *owner, wxDC *WXUNUSED(dc))
+ : wxWindowDCImpl(owner)
+{
+ Init();
+}
+
+wxMemoryDCImpl::~wxMemoryDCImpl()
+{
+}
+
+void wxMemoryDCImpl::DoSelect( const wxBitmap& bitmap )
+{
+ Destroy();
+
+ m_selected = bitmap;
+ if (m_selected.Ok())
+ {
+ if (m_selected.GetPixmap())
+ {
+ m_window = m_selected.GetPixmap();
+ }
+ else
+ {
+ m_window = m_selected.GetBitmap();
+ }