minor change in passing arguments to CreateAntialiasedBitmap

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5454 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík 2000-01-16 13:27:24 +00:00
parent a63f2bec29
commit b4b58c41d2

View File

@ -195,7 +195,11 @@ int wxFileIconsTable::GetIconID(const wxString& extension)
if (img.GetWidth() == 16 && img.GetHeight() == 16)
m_ImageList.Add(img.ConvertToBitmap());
else
m_ImageList.Add(CreateAntialiasedBitmap(img.Scale(32, 32)));
{
if (img.GetWidth() != 32 || img.GetHeight() != 32)
img.Rescale(32, 32);
m_ImageList.Add(CreateAntialiasedBitmap(img));
}
m_HashTable.Put(extension, new wxFileIconEntry(id));
return id;
}