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:
@@ -669,8 +669,7 @@ void MyTreeCtrl::CreateImageList(int size)
|
||||
}
|
||||
else
|
||||
{
|
||||
images->Add(wxImage(icons[i]).Rescale(size, size).
|
||||
ConvertToBitmap());
|
||||
images->Add(wxBitmap(icons[i].ConvertToImage().Rescale(size, size)));
|
||||
}
|
||||
}
|
||||
#endif // MSW/!MSW
|
||||
@@ -714,8 +713,7 @@ void MyTreeCtrl::CreateButtonsImageList(int size)
|
||||
}
|
||||
else
|
||||
{
|
||||
images->Add(wxImage(icons[i]).Rescale(size, size).
|
||||
ConvertToBitmap());
|
||||
images->Add(wxBitmap(icons[i].ConvertToImage().Rescale(size, size)));
|
||||
}
|
||||
}
|
||||
#endif // MSW/!MSW
|
||||
|
Reference in New Issue
Block a user