mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-12-23 20:20:02 +00:00
Merge pull request #514
e4314dd
only enable high dpi scaling on qt >= 5.6 (Jaquee)e90c186
Fix high DPI scaling (Jaquee)
This commit is contained in:
commit
9859f33914
1 changed files with 8 additions and 1 deletions
9
main.cpp
9
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";
|
||||
|
|
Loading…
Reference in a new issue