From ec8ddb047deff0eca656a4496f483a9b29f15b94 Mon Sep 17 00:00:00 2001 From: Ilya Fedin Date: Mon, 25 Jan 2021 11:46:29 +0400 Subject: [PATCH] Use style::CheckScale when setting gtk scale factor --- Telegram/SourceFiles/platform/linux/linux_gtk_integration.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/platform/linux/linux_gtk_integration.cpp b/Telegram/SourceFiles/platform/linux/linux_gtk_integration.cpp index 964dff0f1..cef213366 100644 --- a/Telegram/SourceFiles/platform/linux/linux_gtk_integration.cpp +++ b/Telegram/SourceFiles/platform/linux/linux_gtk_integration.cpp @@ -221,7 +221,7 @@ void SetScaleFactor() { } LOG(("GTK scale factor: %1").arg(scaleFactor)); - cSetScreenScale(std::clamp(scaleFactor * 100, 100, 300)); + cSetScreenScale(style::CheckScale(scaleFactor * 100)); }); }