X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/11ab1dfbfeb447f8836e42ece77f6e505eb91824..2adfb497e666354303ea6bb0e468f1e53811ad55:/samples/treectrl/treetest.cpp diff --git a/samples/treectrl/treetest.cpp b/samples/treectrl/treetest.cpp index 4a7a80ded0..e7cb2cb8f5 100644 --- a/samples/treectrl/treetest.cpp +++ b/samples/treectrl/treetest.cpp @@ -669,8 +669,7 @@ void MyTreeCtrl::CreateImageList(int size) } else { - images->Add(wxImage(icons[i]).Rescale(size, size). - ConvertToBitmap()); + images->Add(wxBitmap(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