mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-01 23:15:59 +00:00
Replaced snap util function with std::clamp.
This commit is contained in:
@@ -189,7 +189,7 @@ void SessionSettings::addFromSerialized(const QByteArray &serialized) {
|
||||
if (!stream.atEnd()) {
|
||||
qint32 value = 0;
|
||||
stream >> value;
|
||||
appDialogsWidthRatio = snap(value / 1000000., 0., 1.);
|
||||
appDialogsWidthRatio = std::clamp(value / 1000000., 0., 1.);
|
||||
|
||||
stream >> value;
|
||||
appThirdColumnWidth = value;
|
||||
|
Reference in New Issue
Block a user