mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-01 23:15:59 +00:00
Not rounding images (photos/videos/gifs) that continue to a bubble.
This commit is contained in:
@@ -824,7 +824,7 @@ QPixmap MediaPreviewWidget::currentImage() const {
|
||||
}
|
||||
if (_gif && _gif->started()) {
|
||||
QSize s = currentDimensions();
|
||||
return _gif->current(s.width(), s.height(), s.width(), s.height(), getms());
|
||||
return _gif->current(s.width(), s.height(), s.width(), s.height(), ImageRoundRadius::None, ImageRoundCorner::None, getms());
|
||||
}
|
||||
if (_cacheStatus != CacheThumbLoaded && _document->thumb->loaded()) {
|
||||
QSize s = currentDimensions();
|
||||
@@ -863,7 +863,7 @@ void MediaPreviewWidget::clipCallback(Media::Clip::Notification notification) {
|
||||
|
||||
if (_gif && _gif->ready() && !_gif->started()) {
|
||||
QSize s = currentDimensions();
|
||||
_gif->start(s.width(), s.height(), s.width(), s.height(), ImageRoundRadius::None);
|
||||
_gif->start(s.width(), s.height(), s.width(), s.height(), ImageRoundRadius::None, ImageRoundCorner::None);
|
||||
}
|
||||
|
||||
update();
|
||||
|
Reference in New Issue
Block a user