kicad-developers team mailing list archive
Mailing list archive
[PATCH] Use wxImage instead of wxBitmap in COLOR4D picker (Fixes LP:1718389)
The COLOR4D_PICKER_DLG has not been working on macOS .
Through some experimentation, I found that drawing to a wxBitmap in
createRGBBitmap() / createHSVBitmap() just doesn't work on macOS. I am not
sure how to fix it, but I did find out that drawing to a wxImage works just
fine, so in the attached patch I switch those two methods to use wxImage.
If anyone can figure out why the wxBitmap stuff works on Windows/Linux but
not macOS, maybe there is a simpler way to fix this, but if not, the patch
could be a good workaround (maybe it's a wx bug?)
Description: Binary data