vcl/quartz/salgdicommon.cxx |   11 +++++++++++
 1 file changed, 11 insertions(+)

New commits:
commit 30d012a391857cc240407890dd1ac80fa28358de
Author:     Tor Lillqvist <t...@collabora.com>
AuthorDate: Tue Mar 12 19:27:23 2019 +0200
Commit:     Tor Lillqvist <t...@collabora.com>
CommitDate: Tue Mar 12 23:38:07 2019 +0200

    Temporary hack to make iOS app dialogs look better
    
    Change-Id: I6b1fe798cb1af7419e12f1b9e41ca13608e3ee4b

diff --git a/vcl/quartz/salgdicommon.cxx b/vcl/quartz/salgdicommon.cxx
index d1beb08c1a66..cbca6fe3fdf9 100644
--- a/vcl/quartz/salgdicommon.cxx
+++ b/vcl/quartz/salgdicommon.cxx
@@ -22,6 +22,7 @@
 #include <cassert>
 #include <cstring>
 
+#include <comphelper/lok.hxx>
 #include <basegfx/polygon/b2dpolygon.hxx>
 #include <osl/endian.h>
 #include <osl/file.hxx>
@@ -36,6 +37,7 @@
 #endif
 #include <quartz/utils.h>
 #ifdef IOS
+#include <UIKit/UIKit.h>
 #include "saldatabasic.hxx"
 #endif
 #include <sft.hxx>
@@ -1386,6 +1388,15 @@ void AquaSalGraphics::GetResolution( sal_Int32& rDPIX, 
sal_Int32& rDPIY )
     rDPIY = mnRealDPIY;
 #else
     rDPIX = rDPIY = 96;
+    if (comphelper::LibreOfficeKit::isActive())
+    {
+        // Horrible, ugly hack. This is the WRONG way to get the dialogs in 
the iOS app to look
+        // sane. (But I could not figure out the RIGHT way...) This hack does 
help in the sense that
+        // it makes the widgets in the dialogs sanely sized and not 
overlapping, but the text in the
+        // dialogs ends up quite fuzzy.
+        rDPIX /= [[UIScreen mainScreen] scale];
+        rDPIY /= [[UIScreen mainScreen] scale];
+    }
 #endif
 }
 
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to