X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c67daf87774c71ae9f73af9969008af220e52a11..520e470fdd0daef09c77938db642e4583933c90d:/src/gtk/dcmemory.cpp diff --git a/src/gtk/dcmemory.cpp b/src/gtk/dcmemory.cpp index 5a6e982f9e..84a6e144e7 100644 --- a/src/gtk/dcmemory.cpp +++ b/src/gtk/dcmemory.cpp @@ -14,6 +14,10 @@ #include "wx/dcmemory.h" +#ifdef wxUSE_GDK_IMLIB +#include "../gdk_imlib/gdk_imlib.h" +#endif + //----------------------------------------------------------------------------- // wxMemoryDC //----------------------------------------------------------------------------- @@ -23,13 +27,23 @@ IMPLEMENT_DYNAMIC_CLASS(wxMemoryDC,wxPaintDC) wxMemoryDC::wxMemoryDC(void) { m_ok = FALSE; + +#ifdef wxUSE_GDK_IMLIB + m_cmap = gdk_imlib_get_colormap(); +#else m_cmap = gdk_colormap_get_system(); +#endif } wxMemoryDC::wxMemoryDC( wxDC *WXUNUSED(dc) ) { m_ok = FALSE; + +#ifdef wxUSE_GDK_IMLIB + m_cmap = gdk_imlib_get_colormap(); +#else m_cmap = gdk_colormap_get_system(); +#endif } wxMemoryDC::~wxMemoryDC(void)