From dac0c04d20f06c587bb5870e42e1894b420eca15 Mon Sep 17 00:00:00 2001 From: xiphon Date: Mon, 26 Apr 2021 21:11:21 +0000 Subject: [PATCH] main: fix Monero GUI window centering --- src/main/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/main.cpp b/src/main/main.cpp index e3aca5e9..07ecce91 100644 --- a/src/main/main.cpp +++ b/src/main/main.cpp @@ -331,7 +331,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();