From b0a75a5bbafe61a6e11b27088ef1ef9b3406024d Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Tue, 28 Jun 2022 21:26:01 -0700 Subject: [PATCH] Fix for wxBitmap::UseAlpha on MSW --- etg/bitmap.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/etg/bitmap.py b/etg/bitmap.py index 7b901921..e5c76712 100644 --- a/etg/bitmap.py +++ b/etg/bitmap.py @@ -92,6 +92,10 @@ def run(): c.find('SetMask.mask').transfer = True + # TODO: This is different than the docs, but only on MSW... Remove this + # if/when that gets fixed. + c.find('UseAlpha').type = 'void' + c.addCppMethod('void', 'SetMaskColour', '(const wxColour& colour)', doc="Create a mask for this bitmap based on the pixels with the given colour.", body="""\