mirror of https://github.com/procxx/kepka.git
parent
735457c231
commit
22df6fb42e
|
@ -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…
Reference in New Issue