Fixes for some more bugs encountered when running KiCad.
https://github.com/wxWidgets/wxWidgets/pull/24309
(9 files)
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
@vadz approved this pull request.
Looks good to me, thanks!
@AliKet any comments?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
@AliKet commented on this pull request.
> @@ -237,6 +237,9 @@ void wxBitmap::InitFromImage(const wxImage& image, int depth, double WXUNUSED(sc
? QBitmap::fromImage(ConvertImage(image), Qt::ThresholdDither)
: QPixmap::fromImage(ConvertImage(image, &mask));
+ if (mask)
+ qtImage.setMask(*mask->GetHandle());
+
Keeping the mask seperated from the qtImage is intentional because this is how the other ports works. IOW, setMask() merges the mask with the pixmap's alpha channel. And AFAIK none of the other ports do this by default.
If you really want the mask be merged just be explicit and call wxBitmap::QtBlendMaskWithAlpha()
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
@dsa-t pushed 1 commit.
—
View it on GitHub or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
@AliKet approved this pull request.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
Merged #24309 into master.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()