Subject: | Missing GetContentScaleFactor() in Wx::Window |
MIME-Version: | 1.0 |
X-Mailer: | MIME-tools 5.504 (Entity 5.504) |
X-RT-Interface: | Web |
Message-ID: | <rt-4.0.18-7589-1401721820-1121.0-0-0@rt.cpan.org> |
X-RT-Original-Encoding: | utf-8 |
Content-Type: | multipart/mixed; boundary="----------=_1401721820-7589-3" |
X-RT-Encrypt: | 0 |
X-RT-Sign: | 0 |
Content-Length: | 0 |
Content-Disposition: | inline |
Content-Type: | text/plain; charset="utf-8" |
Content-Transfer-Encoding: | binary |
Content-Length: | 368 |
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.
Subject: | WxWindow.patch |
MIME-Version: | 1.0 |
Content-Type: | application/octet-stream; name="WxWindow.patch" |
X-Mailer: | MIME-tools 5.504 (Entity 5.504) |
Content-Disposition: | inline; filename="WxWindow.patch" |
Content-Transfer-Encoding: | base64 |
Content-Length: | 299 |
--- 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