Hi
>I am trying to move OpenCPN (
http://opencpn.org/) from wxWidgets 2.8 to
>2.9.4.
>For some reason, using this new wxWidgets version the function call
>"wxRegion::wxRegion(size_t n, const wxPoint *points, wxPolygonFillMode
>fillStyle)" (src/osx/carbon/region.cpp) is VERY slow while in wxWidgets
>2.8 it wasn't.
>I noticed that this function was completely rewritten. And it appears
>that "bmp.SetMask(new wxMask(bmp, *wxBLACK));" is one of the statements
>that makes this new implementation so slow.
>
>Is it possible for someone to check if this is a wxWidgets "bug", please?
Unfortunately it's not a bug, there's no way that I'm aware of to create a
HIShape (native element for a region) from Polygons, QuickDraw is gone, so
I had to remove the workaround I had for 2.9. So right now this is a brute
force route which involves a bitmap which is then striped into rects which
are reassembled into a region.
Probably the best way to move forward is to either use paths for
everything or add a generic region lib Š
Best,
Stefan
>
>