mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fixed GIFs in EditCaptionBox on Retina screens.
This commit is contained in:
parent
be53bd5293
commit
bfb03621c2
1 changed files with 3 additions and 3 deletions
|
@ -486,13 +486,13 @@ void EditCaptionBox::handleStreamingError(Error &&error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void EditCaptionBox::streamingReady(Information &&info) {
|
void EditCaptionBox::streamingReady(Information &&info) {
|
||||||
const auto calculateGifDimensions = [&]() {
|
const auto calculateGifDimensions = [&] {
|
||||||
const auto scaled = QSize(
|
const auto scaled = QSize(
|
||||||
info.video.size.width(),
|
info.video.size.width(),
|
||||||
info.video.size.height()
|
info.video.size.height()
|
||||||
).scaled(
|
).scaled(
|
||||||
st::sendMediaPreviewSize * cIntRetinaFactor(),
|
st::sendMediaPreviewSize,
|
||||||
st::confirmMaxHeight * cIntRetinaFactor(),
|
st::confirmMaxHeight,
|
||||||
Qt::KeepAspectRatio);
|
Qt::KeepAspectRatio);
|
||||||
_thumbw = _gifw = scaled.width();
|
_thumbw = _gifw = scaled.width();
|
||||||
_thumbh = _gifh = scaled.height();
|
_thumbh = _gifh = scaled.height();
|
||||||
|
|
Loading…
Add table
Reference in a new issue