X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c67daf87774c71ae9f73af9969008af220e52a11..41dee9d0ce93989c03848ebd7fc21fb402d4c247:/src/gtk/dcmemory.cpp diff --git a/src/gtk/dcmemory.cpp b/src/gtk/dcmemory.cpp index 5a6e982f9e..f346200a81 100644 --- a/src/gtk/dcmemory.cpp +++ b/src/gtk/dcmemory.cpp @@ -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 ///////////////////////////////////////////////////////////////////////////// @@ -23,13 +22,15 @@ IMPLEMENT_DYNAMIC_CLASS(wxMemoryDC,wxPaintDC) wxMemoryDC::wxMemoryDC(void) { m_ok = FALSE; - m_cmap = gdk_colormap_get_system(); + + m_cmap = gtk_widget_get_default_colormap(); } wxMemoryDC::wxMemoryDC( wxDC *WXUNUSED(dc) ) { m_ok = FALSE; - m_cmap = gdk_colormap_get_system(); + + m_cmap = gtk_widget_get_default_colormap(); } wxMemoryDC::~wxMemoryDC(void) @@ -52,7 +53,7 @@ void wxMemoryDC::SelectObject( const wxBitmap& bitmap ) SetUpDC(); - m_isDrawable = FALSE; + m_isMemDC = TRUE; } else {