]> git.saurik.com Git - wxWidgets.git/blobdiff - src/motif/dcmemory.cpp
added assert to check that notebook page does have notebook as parent; removed duplic...
[wxWidgets.git] / 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);