mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
parent
735457c231
commit
22df6fb42e
1 changed files with 6 additions and 2 deletions
|
@ -111,7 +111,9 @@ QSize Gif::countOptimalSize() {
|
||||||
_parent->skipBlockHeight());
|
_parent->skipBlockHeight());
|
||||||
}
|
}
|
||||||
|
|
||||||
const auto maxSize = _data->isVideoMessage()
|
const auto maxSize = _data->isVideoFile()
|
||||||
|
? st::maxMediaSize
|
||||||
|
: _data->isVideoMessage()
|
||||||
? st::maxVideoMessageSize
|
? st::maxVideoMessageSize
|
||||||
: st::maxGifSize;
|
: st::maxGifSize;
|
||||||
const auto size = style::ConvertScale(videoSize());
|
const auto size = style::ConvertScale(videoSize());
|
||||||
|
@ -160,7 +162,9 @@ QSize Gif::countOptimalSize() {
|
||||||
QSize Gif::countCurrentSize(int newWidth) {
|
QSize Gif::countCurrentSize(int newWidth) {
|
||||||
auto availableWidth = newWidth;
|
auto availableWidth = newWidth;
|
||||||
|
|
||||||
const auto maxSize = _data->isVideoMessage()
|
const auto maxSize = _data->isVideoFile()
|
||||||
|
? st::maxMediaSize
|
||||||
|
: _data->isVideoMessage()
|
||||||
? st::maxVideoMessageSize
|
? st::maxVideoMessageSize
|
||||||
: st::maxGifSize;
|
: st::maxGifSize;
|
||||||
const auto size = style::ConvertScale(videoSize());
|
const auto size = style::ConvertScale(videoSize());
|
||||||
|
|
Loading…
Add table
Reference in a new issue