Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use wxAlphaPixelData for default native bitmaps in the unit test
The unit test added in 607b800 didn't work on the systems using 32 bpp screens, i.e. almost all of them, because it tried to use 24 bpp wxNativePixelData with them. Fix this by using wxAlphaPixelData, which won't work on non 32 bpp systems, and so is still not ideal, but at least makes the test work on most systems by default. See #17666.
- Loading branch information
092e772
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unfortunately, under wxGTK3 default color depth of wxBitmap is 24 bpp and with wxAlphaPixelData this unit test crashes with segfault.