2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

version 0.6.10 prepared

This commit is contained in:
John Preston
2014-11-18 15:59:16 +03:00
parent 28c8d125cf
commit 85ca7e0f05
15 changed files with 32 additions and 28 deletions

View File

@@ -2105,6 +2105,10 @@ int32 HistoryPhoto::resize(int32 width, bool dontRecountText, const HistoryItem
th = (st::maxMediaSize * th) / tw;
tw = st::maxMediaSize;
}
if (th > st::maxMediaSize) {
tw = (st::maxMediaSize * tw) / th;
th = st::maxMediaSize;
}
_height = th;
if (tw > w) {
_height = (w * _height / tw);