From 9c5f02ff682a3bbcdbe5acdda6e404cd3c013939 Mon Sep 17 00:00:00 2001 From: Vaxry Date: Wed, 16 Oct 2024 15:49:31 +0100 Subject: [PATCH] core: use screen size not geom --- src/SystemInfo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SystemInfo.cpp b/src/SystemInfo.cpp index 111cf41..5464c44 100644 --- a/src/SystemInfo.cpp +++ b/src/SystemInfo.cpp @@ -189,7 +189,7 @@ CSystemInternals::CSystemInternals(QObject* parent) : QObject(parent) { std::string screens; for (auto* s : QGuiApplication::screens()) { auto ratio = s->devicePixelRatio(); - screens += std::format("{} ({}x{}), ", s->name().toStdString(), s->geometry().width() * ratio, s->geometry().height() * ratio); + screens += std::format("{} ({}x{}), ", s->name().toStdString(), s->size().width() * ratio, s->size().height() * ratio); } if (!screens.empty())