mirror of
https://github.com/hyprwm/hyprsysteminfo.git
synced 2024-12-25 19:49:48 +01:00
core: use screen size not geom
This commit is contained in:
parent
707a315cd8
commit
9c5f02ff68
1 changed files with 1 additions and 1 deletions
|
@ -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())
|
||||
|
|
Loading…
Reference in a new issue