Correctly scale quadmesh linewidth to dpi

As this touches C++ code, it will have a non-straightforward merge to master...