]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/dcmemory.cpp
Removed the new flicker code.
[wxWidgets.git] / src / gtk1 / dcmemory.cpp
index 78de378ed0d19d31725dba493c9e34aec5de43aa..c41cb0234890647a46007c9f5f31a75a100f6e62 100644 (file)
@@ -2,9 +2,8 @@
 // Name:        dcmemory.cpp
 // Purpose:
 // Author:      Robert Roebling
-// Created:     01/02/97
 // RCS-ID:      $Id$
-// Copyright:   (c) 1998 Robert Roebling, Julian Smart and Markus Holzem
+// Copyright:   (c) 1998 Robert Roebling
 // Licence:    wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
 // wxMemoryDC
 //-----------------------------------------------------------------------------
 
-IMPLEMENT_DYNAMIC_CLASS(wxMemoryDC,wxPaintDC)
+IMPLEMENT_DYNAMIC_CLASS(wxMemoryDC,wxWindowDC)
 
-wxMemoryDC::wxMemoryDC(void)
+wxMemoryDC::wxMemoryDC(void) : wxWindowDC()
 {
   m_ok = FALSE;
-  m_cmap = gdk_colormap_get_system();
+  
+  m_cmap = gtk_widget_get_default_colormap();
 }
 
-wxMemoryDC::wxMemoryDC( wxDC *WXUNUSED(dc) )
+wxMemoryDC::wxMemoryDC( wxDC *WXUNUSED(dc) ) 
+  : wxWindowDC()
 {
   m_ok = FALSE;
-  m_cmap = gdk_colormap_get_system();
+  
+  m_cmap = gtk_widget_get_default_colormap();
 }
 
 wxMemoryDC::~wxMemoryDC(void)
@@ -52,12 +54,12 @@ void wxMemoryDC::SelectObject( const wxBitmap& bitmap )
     
     SetUpDC();
     
-    m_isDrawable = FALSE;
+    m_isMemDC = TRUE;
   }
   else
   {
     m_ok = FALSE;
-    m_window = NULL;
+    m_window = (GdkWindow *) NULL;
   }
 }