From 21342bba689c15e441fc4b74db6e10ebc3b11b00 Mon Sep 17 00:00:00 2001 From: Mattia Barbon Date: Wed, 19 Feb 2003 21:06:02 +0000 Subject: [PATCH] Allow selecting a mono bitmap into a wxMemoryDC. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19261 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/motif/dcmemory.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/motif/dcmemory.cpp b/src/motif/dcmemory.cpp index bdbd68f727..8ac24c411e 100644 --- a/src/motif/dcmemory.cpp +++ b/src/motif/dcmemory.cpp @@ -114,7 +114,7 @@ void wxMemoryDC::SelectObject( const wxBitmap& bitmap ) gcvalues.graphics_exposures = False; gcvalues.subwindow_mode = IncludeInferiors; gcvalues.line_width = 1; - m_gc = (WXGC) XCreateGC (display, RootWindow (display, DefaultScreen (display)), + m_gc = (WXGC) XCreateGC (display, (Drawable)m_pixmap/* RootWindow (display, DefaultScreen (display)) */, GCForeground | GCBackground | GCGraphicsExposures | GCLineWidth | GCSubwindowMode, &gcvalues); -- 2.45.2