|Subject:||Missing GetContentScaleFactor() in Wx::Window|
I'm developing cross platform GUI apps for which I needed retina display support on OS X. This is pretty much done since wxWidgets 2.9.5 but wxPerl unfortunately missing the crucial window->GetContentScaleFactor() method which is needed to identify if we're on a retina display or not. I've attached a patch which adds this missing method to the Wx::Window interface.
--- Wx-0.9923\Window.xs 2014-03-08 13:01:41.000000000 +0100 +++ Wx-0.9923.patched\Window.xs 2014-06-02 16:56:07.644314600 +0200 @@ -647,6 +647,13 @@ #endif +# if WXPERL_W_VERSION_GE( 2, 9, 5 ) + +double +wxWindow::GetContentScaleFactor() + +#endif + #if WXPERL_W_VERSION_GE( 2, 5, 3 ) void