Preventing bitmap crash differently.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14863 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2002-03-29 17:23:54 +00:00
parent c7f6246740
commit 8cce894070
4 changed files with 14 additions and 16 deletions

View File

@@ -328,8 +328,8 @@ bool wxBitmap::CreateFromXpm( const char **bits )
}
gdk_window_get_size( M_BMPDATA->m_pixmap, &(M_BMPDATA->m_width), &(M_BMPDATA->m_height) );
M_BMPDATA->m_bpp = visual->depth; // ?
M_BMPDATA->m_bpp = visual->depth; // Can we get a different depth from create_from_xpm_d() ?
return TRUE;
}