]> git.saurik.com Git - wxWidgets.git/commitdiff
minor change in passing arguments to CreateAntialiasedBitmap
authorVáclav Slavík <vslavik@fastmail.fm>
Sun, 16 Jan 2000 13:27:24 +0000 (13:27 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Sun, 16 Jan 2000 13:27:24 +0000 (13:27 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5454 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/filedlgg.cpp

index 2fabafdd40db7bdfe6e13533d668b56e6173685b..135e6ecca011d4ddaf512b0482fe157f73c92bbd 100644 (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;
 }