From: Václav Slavík Date: Sun, 16 Jan 2000 13:27:24 +0000 (+0000) Subject: minor change in passing arguments to CreateAntialiasedBitmap X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/b4b58c41d2483835aef98e8132290fb94199f8bd?hp=a63f2bec290ddf058718c8465a56c3ef421685eb minor change in passing arguments to CreateAntialiasedBitmap git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5454 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/generic/filedlgg.cpp b/src/generic/filedlgg.cpp index 2fabafdd40..135e6ecca0 100644 --- a/src/generic/filedlgg.cpp +++ b/src/generic/filedlgg.cpp @@ -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; }