changed wxBitmap::CreateFromXpm to use wxBitmap(wxImage,int) ctor again -- it should work fine with BCC now
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10185 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
52f96deca1
commit
c59b4b010e
@ -293,7 +293,7 @@ bool wxBitmap::CreateFromXpm(const char **data)
|
||||
wxImage img = decoder.ReadData(data);
|
||||
wxCHECK_MSG( img.Ok(), FALSE, wxT("invalid bitmap data") )
|
||||
|
||||
*this = img.ConvertToBitmap();
|
||||
*this = wxBitmap(img);
|
||||
return TRUE;
|
||||
#else
|
||||
return FALSE;
|
||||
|
Loading…
Reference in New Issue
Block a user