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:
@@ -195,7 +195,11 @@ int wxFileIconsTable::GetIconID(const wxString& extension)
|
|||||||
if (img.GetWidth() == 16 && img.GetHeight() == 16)
|
if (img.GetWidth() == 16 && img.GetHeight() == 16)
|
||||||
m_ImageList.Add(img.ConvertToBitmap());
|
m_ImageList.Add(img.ConvertToBitmap());
|
||||||
else
|
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));
|
m_HashTable.Put(extension, new wxFileIconEntry(id));
|
||||||
return id;
|
return id;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user