X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/dc4025af9a663583878b02e30073e29205ae5d9f..f94dd12dc18afd8518a88e9edac75f6dff907c9c:/src/x11/bitmap.cpp?ds=sidebyside diff --git a/src/x11/bitmap.cpp b/src/x11/bitmap.cpp index a365ddf028..9659dc351c 100644 --- a/src/x11/bitmap.cpp +++ b/src/x11/bitmap.cpp @@ -733,14 +733,14 @@ wxImage wxBitmap::ConvertToImage() const Display *xdisplay = (Display*) M_BMPDATA->m_display; wxASSERT_MSG( xdisplay, wxT("No display") ); - - int bpp = wxTheApp->m_visualDepth; #if wxUSE_NANOX + //int bpp = DefaultDepth(xdisplay, xscreen); wxGetImageFromDrawable((Pixmap) GetPixmap(), 0, 0, GetWidth(), GetHeight(), image); return image; #else // !wxUSE_NANOX + int bpp = wxTheApp->m_visualDepth; XImage *x_image = NULL; if (GetPixmap()) {