[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()
- [lmi-commits] [lmi] master updated (0cafa323 -> 61ff010d), Greg Chicares, 2022/06/30
- [lmi-commits] [lmi] master 4099c2f8 2/8: Update wxPdfDoc to the latest version compatible with wx 3.2.0, Greg Chicares, 2022/06/30
- [lmi-commits] [lmi] master 36b2e546 3/8: Revert "Work around a wxPdfDoc regression", Greg Chicares, 2022/06/30
- [lmi-commits] [lmi] master cd8433ad 4/8: Enable per-monitor DPI awareness for lmi, Greg Chicares, 2022/06/30
- [lmi-commits] [lmi] master d98ebe29 1/8: Update wxWidgets to v3.2.0 pre-release, Greg Chicares, 2022/06/30
- [lmi-commits] [lmi] master 2892d588 6/8: Add extra accelerators with "+" and "-" keys synonyms, Greg Chicares, 2022/06/30
- [lmi-commits] [lmi] master 61ff010d 8/8: Update xmlwrapp to the latest pre-0.9.2 version, Greg Chicares, 2022/06/30
- [lmi-commits] [lmi] master 2fab3ef3 5/8: Remove workaround for WX bug fixed a long time ago,
Greg Chicares <=
- [lmi-commits] [lmi] master 8563dcab 7/8: Change icon_monger to return wxBitmapBundle rather than wxBitmap, Greg Chicares, 2022/06/30