X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/dc4025af9a663583878b02e30073e29205ae5d9f..c03d003515704bafe7f7b3d0d3781f4cb9deb6f7:/src/x11/bitmap.cpp diff --git a/src/x11/bitmap.cpp b/src/x11/bitmap.cpp index a365ddf028..38f8aba90a 100644 --- a/src/x11/bitmap.cpp +++ b/src/x11/bitmap.cpp @@ -370,7 +370,7 @@ bool wxBitmap::CreateFromXpm( const char **bits ) XGetGeometry( xdisplay, pixmap, &xroot, &xRet, &yRet, &widthRet, &heightRet, &borderWidthRet, &depthRet); - wxASSERT_MSG( bpp == (int)depthRet, wxT("colour depth mismatch") ) + wxASSERT_MSG( bpp == (int)depthRet, wxT("colour depth mismatch") ); #endif XpmFreeAttributes(&xpmAttr); @@ -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()) {