From 4ba1c184b5da9235046532e03cc380789b072a47 Mon Sep 17 00:00:00 2001 From: Robert Roebling Date: Fri, 17 Nov 2006 09:47:24 +0000 Subject: [PATCH] Commit fix to remove warnings when drawing text to a mono-bitmap. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43464 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/gtk/dcclient.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gtk/dcclient.cpp b/src/gtk/dcclient.cpp index 77ed883565..15b718f7a5 100644 --- a/src/gtk/dcclient.cpp +++ b/src/gtk/dcclient.cpp @@ -391,6 +391,8 @@ void wxWindowDC::SetUpDC() gdk_gc_set_background( m_textGC, m_textBackgroundColour.GetColor() ); gdk_gc_set_fill( m_textGC, GDK_SOLID ); + + gdk_gc_set_colormap( m_textGC, m_cmap ); /* m_penGC */ m_pen.GetColour().CalcPixel( m_cmap );