X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cc5fb8a7cdaf2ff3706e4c468a1695e34c0505ec..7fce89b9441f5a7c885086af6e0d1bf981156c49:/src/x11/dcclient.cpp diff --git a/src/x11/dcclient.cpp b/src/x11/dcclient.cpp index 033d476bbf..272cc1dd1a 100644 --- a/src/x11/dcclient.cpp +++ b/src/x11/dcclient.cpp @@ -1188,19 +1188,12 @@ void wxWindowDC::DoDrawBitmap( const wxBitmap &bitmap, new_pixmap = XCreatePixmap( xdisplay, xroot, ww, hh, 1 ); GC gc = XCreateGC( xdisplay, new_pixmap, 0, NULL ); - int bpp = wxTheApp->GetVisualInfo(m_display)->m_visualDepth; - if (bpp == 8) - XSetForeground( xdisplay, gc, WhitePixel(xdisplay,xscreen) ); - else - XSetForeground( xdisplay, gc, BlackPixel(xdisplay,xscreen) ); + XSetForeground( xdisplay, gc, BlackPixel(xdisplay,xscreen) ); XSetFillStyle( xdisplay, gc, FillSolid ); XFillRectangle( xdisplay, new_pixmap, gc, 0, 0, ww, hh ); - if (bpp == 8) - XSetForeground( xdisplay, gc, BlackPixel(xdisplay,xscreen) ); - else - XSetForeground( xdisplay, gc, WhitePixel(xdisplay,xscreen) ); + XSetForeground( xdisplay, gc, WhitePixel(xdisplay,xscreen) ); if (useMask && mask) {