From b4b58c41d2483835aef98e8132290fb94199f8bd Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Sun, 16 Jan 2000 13:27:24 +0000 Subject: [PATCH] minor change in passing arguments to CreateAntialiasedBitmap git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5454 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/filedlgg.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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; } -- 2.45.2