core: use screen size not geom

This commit is contained in:
Vaxry 2024-10-16 15:49:31 +01:00
parent 707a315cd8
commit 9c5f02ff68
1 changed files with 1 additions and 1 deletions

View File

@ -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())