]> git.saurik.com Git - wxWidgets.git/commitdiff
Allow selecting a mono bitmap into a wxMemoryDC.
authorMattia Barbon <mbarbon@cpan.org>
Wed, 19 Feb 2003 21:06:02 +0000 (21:06 +0000)
committerMattia Barbon <mbarbon@cpan.org>
Wed, 19 Feb 2003 21:06:02 +0000 (21:06 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19261 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/motif/dcmemory.cpp

index bdbd68f7276480c5dfb3086495819b04d181bf01..8ac24c411ea59731dbaed1bc7bb1a79f4e53f49b 100644 (file)
@@ -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);