lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [lmi] master 2fab3ef3 5/8: Remove workaround for WX bug fi


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 2fab3ef3 5/8: Remove workaround for WX bug fixed a long time ago
Date: Thu, 30 Jun 2022 11:14:15 -0400 (EDT)

branch: master
commit 2fab3ef335f03025bb8756926130c3af58e89d56
Author: Vadim Zeitlin <vadim@tt-solutions.com>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>

    Remove workaround for WX bug fixed a long time ago
    
    There is no need to call wxImage::InitAlpha() explicitly before
    (possibly) resizing the image, it might have been needed with some old
    version of wxWidgets, but not with the currently used one, as resizing
    handles both mask and alpha correctly.
---
 icon_monger.cpp | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/icon_monger.cpp b/icon_monger.cpp
index 5eb70fe8..94d27d74 100644
--- a/icon_monger.cpp
+++ b/icon_monger.cpp
@@ -219,12 +219,6 @@ wxBitmap icon_monger::CreateBitmap
         return wxNullBitmap;
         }
 
-    // WX !! Remove this little block when wx does this automatically.
-    if(image.HasMask())
-        {
-        image.InitAlpha();
-        }
-
     if(desired_size != wxSize(image.GetWidth(), image.GetHeight()))
         {
         warning()



reply via email to

[Prev in Thread] Current Thread [Next in Thread]