Trunk made changes. Code had to change to deal with depth==32

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_GTK3@68855 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
John Chain
2011-08-22 21:53:38 +00:00
parent 9d15e6f9cb
commit 3daa5cfad5
+1 -1
View File
@@ -370,7 +370,7 @@ bool wxBitmap::CreateFromImage(const wxImage& image, int depth)
UnRef();
wxCHECK_MSG( image.IsOk(), false, wxT("invalid image") );
wxCHECK_MSG( depth == -1 || depth == 1, false, wxT("invalid bitmap depth") );
wxCHECK_MSG( depth == -1 || depth == 1 || depth == 32, false, wxT("invalid bitmap depth") );
if (image.GetWidth() <= 0 || image.GetHeight() <= 0)
return false;