Mon Jun 02 11:10:20 2014: Request 96136 was acted upon.
Transaction: Ticket created by b...@hosember.hu
       Queue: Wx
     Subject: Missing GetContentScaleFactor() in Wx::Window
   Broken in: 0.9923
    Severity: Important
       Owner: Nobody
  Requestors: b...@hosember.hu
      Status: new
 Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=96136 >


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

Reply via email to