mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-30 22:16:14 +00:00
Allow using any interface scale between 100%-300%.
This commit is contained in:
@@ -411,8 +411,8 @@ void ChatBackground::setImage(int32 id, QImage &&image) {
|
||||
image.load(qsl(":/gui/art/bg_initial.jpg"));
|
||||
if (cRetina()) {
|
||||
image = image.scaledToWidth(image.width() * 2, Qt::SmoothTransformation);
|
||||
} else if (cScale() != dbisOne) {
|
||||
image = image.scaledToWidth(convertScale(image.width()), Qt::SmoothTransformation);
|
||||
} else if (cScale() != 100) {
|
||||
image = image.scaledToWidth(ConvertScale(image.width()), Qt::SmoothTransformation);
|
||||
}
|
||||
} else if (_id == kDefaultBackground || image.isNull()) {
|
||||
_id = kDefaultBackground;
|
||||
|
Reference in New Issue
Block a user