mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 14:17:12 +02:00
Use window widget's devicePixelRatio when displaying interface scale value
This is less confusing in multi-monitor environments
This commit is contained in:
parent
41d9a9fcbd
commit
eee800b6d0
1 changed files with 2 additions and 1 deletions
|
@ -474,7 +474,8 @@ void SetupInterfaceScale(
|
|||
if constexpr (Platform::IsMac()) {
|
||||
return QString::number(scale) + '%';
|
||||
} else {
|
||||
return QString::number(scale * ratio) + '%';
|
||||
const auto ratio = window->widget()->devicePixelRatioF();
|
||||
return QString::number(int(scale * ratio)) + '%';
|
||||
}
|
||||
};
|
||||
label->setText(labelText(cEvalScale(scale)));
|
||||
|
|
Loading…
Add table
Reference in a new issue