X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/11ab1dfbfeb447f8836e42ece77f6e505eb91824..a2615ebc22a402b1badb46475f94ab6aa3a64018:/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