@Wayne, @Seth, absolutely, I'll sort it out. I didn't get to a finished patch on Friday, but I wanted Adrian's testing of it including the grid sooner rather than later.
@Adrian, thanks for testing and for checking the grid! It is (sadly) expected that WX will not be able to divine the real scaling on Linux (and give you a default value of 1.0) until WX 3.1. This probably means WX 3.2 release on most distros, as 3.1 is not a stable release.
However, this patch should allow KiCad to seamlessly pick it up from WX when the function does work.
I am also unsure if all the hacks in wxwidgets on OSX are still needed. AFAICT, WX does support GetContentScaleFactor() in 3.0, but not sure about older versions or if that's even what's needed for Retina displays.
@Wayne, @Seth, absolutely, I'll sort it out. I didn't get to a finished patch on Friday, but I wanted Adrian's testing of it including the grid sooner rather than later.
@Adrian, thanks for testing and for checking the grid! It is (sadly) expected that WX will not be able to divine the real scaling on Linux (and give you a default value of 1.0) until WX 3.1. This probably means WX 3.2 release on most distros, as 3.1 is not a stable release.
However, this patch should allow KiCad to seamlessly pick it up from WX when the function does work.
I am also unsure if all the hacks in wxwidgets on OSX are still needed. AFAICT, WX does support GetContentScale Factor( ) in 3.0, but not sure about older versions or if that's even what's needed for Retina displays.