Merge pull request #3447

dac0c04 main: fix Monero GUI window centering (xiphon)
This commit is contained in:
luigi1111 2021-04-29 14:16:32 -04:00
commit 947a70a638
No known key found for this signature in database
GPG Key ID: F4ACA0183641E010

View File

@ -339,7 +339,7 @@ Verify update binary using 'shasum'-compatible (SHA256 algo) output signed by tw
// screen settings
// Mobile is designed on 128dpi
qreal ref_dpi = 128;
QSize screenAvailableSize = QGuiApplication::primaryScreen()->availableVirtualSize();
QSize screenAvailableSize = QGuiApplication::primaryScreen()->availableSize();
QRect rect = QGuiApplication::primaryScreen()->geometry();
qreal dpi = QGuiApplication::primaryScreen()->logicalDotsPerInch();
qreal physicalDpi = QGuiApplication::primaryScreen()->physicalDotsPerInch();