2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-02 15:35:51 +00:00

Not rounding images (photos/videos/gifs) that continue to a bubble.

This commit is contained in:
John Preston
2016-11-21 23:26:54 +03:00
parent 9155591e8a
commit eb05e62422
16 changed files with 337 additions and 198 deletions

View File

@@ -198,11 +198,11 @@ StorageKey PeerData::userpicUniqueKey() const {
}
void PeerData::saveUserpic(const QString &path, int size) const {
currentUserpic()->pixRounded(ImageRoundRadius::Small, size, size).save(path, "PNG");
currentUserpic()->pixRounded(size, size, ImageRoundRadius::Small).save(path, "PNG");
}
QPixmap PeerData::genUserpic(int size) const {
return currentUserpic()->pixRounded(ImageRoundRadius::Small, size, size);
return currentUserpic()->pixRounded(size, size, ImageRoundRadius::Small);
}
const Text &BotCommand::descriptionText() const {