don't use deprecated wxImage methods inside wxWin
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14751 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -948,7 +948,7 @@ bool wxBitmap::LoadFile(const wxString& filename, long type)
|
||||
wxImage image;
|
||||
if ( image.LoadFile( filename, type ) && image.Ok() )
|
||||
{
|
||||
*this = image.ConvertToBitmap();
|
||||
*this = wxBitmap(image);
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
@@ -990,7 +990,7 @@ bool wxBitmap::SaveFile(const wxString& filename,
|
||||
else
|
||||
{
|
||||
// FIXME what about palette? shouldn't we use it?
|
||||
wxImage image( *this );
|
||||
wxImage image = ConvertToImage();
|
||||
if ( image.Ok() )
|
||||
{
|
||||
return image.SaveFile(filename, type);
|
||||
|
Reference in New Issue
Block a user