main: fix Monero GUI window centering

This commit is contained in:
xiphon 2021-04-26 21:11:21 +00:00
parent 02ae14fd6b
commit dac0c04d20

View file

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