aboutsummaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/main.cpp b/main.cpp
index 7b13d482..486d4338 100644
--- a/main.cpp
+++ b/main.cpp
@@ -64,9 +64,16 @@ void messageHandler(QtMsgType type, const QMessageLogContext &context, const QSt
int main(int argc, char *argv[])
{
- Monero::Wallet::init(argv[0], "monero-wallet-gui");
+ // Enable high DPI scaling on windows & linux
+#if !defined(Q_OS_ANDROID) && QT_VERSION >= 0x050600
+ QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
+ qDebug() << "High DPI auto scaling - enabled";
+#endif
+ // Log settings
+ Monero::Wallet::init(argv[0], "monero-wallet-gui");
qInstallMessageHandler(messageHandler);
+
QApplication app(argc, argv);
qDebug() << "app startd";