core: use screen size not geom

This commit is contained in:
Vaxry 2024-10-16 15:49:31 +01:00
parent 707a315cd8
commit 9c5f02ff68

View file

@ -189,7 +189,7 @@ CSystemInternals::CSystemInternals(QObject* parent) : QObject(parent) {
std::string screens; std::string screens;
for (auto* s : QGuiApplication::screens()) { for (auto* s : QGuiApplication::screens()) {
auto ratio = s->devicePixelRatio(); 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()) if (!screens.empty())