mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-03 16:05:57 +00:00
Allow using any interface scale between 100%-300%.
This commit is contained in:
@@ -988,7 +988,7 @@ QSize MediaPreviewWidget::currentDimensions() const {
|
||||
box = QSize(2 * st::maxStickerSize, 2 * st::maxStickerSize);
|
||||
}
|
||||
}
|
||||
result = QSize(qMax(convertScale(result.width()), 1), qMax(convertScale(result.height()), 1));
|
||||
result = QSize(qMax(ConvertScale(result.width()), 1), qMax(ConvertScale(result.height()), 1));
|
||||
if (result.width() > box.width()) {
|
||||
result.setHeight(qMax((box.width() * result.height()) / result.width(), 1));
|
||||
result.setWidth(box.width());
|
||||
|
Reference in New Issue
Block a user