mainwindow: temp fix for high dpi viewing

- Qt does not automatically scale even when AA_EnableHighDpiScaling
  is set. For the best UI at high scaling ratios, UI dimensions should
  be multiplied by the scaling ratio manually. For instance, Qt
  accepts pixel values only for border-radius, and any stylesheets
  with that property, would need to be manually calculated and
  re-propagated. This patch will allow windows to render a fixed size
  window, slightly blurry.

Change-Id: I4e1e85f31e7630bc60330efdb55e6a5cb568b952
diff --git a/main.cpp b/main.cpp
index f75c6ae..7660911 100644
--- a/main.cpp
+++ b/main.cpp
@@ -120,8 +120,15 @@
     newArgv[argc] = ARG_DISABLE_WEB_SECURITY;
     newArgv[argc + 1] = nullptr;
 
+#ifdef Q_OS_WIN
+    SetProcessDPIAware();
+#endif // Q_OS_WIN
+
     QApplication a(newArgc, newArgv);
 
+    QApplication::setAttribute(Qt::AA_EnableHighDpiScaling, false);
+    QGuiApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
+
     QCoreApplication::setOrganizationDomain("jami.net");
     QCoreApplication::setApplicationName("Ring");