2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 22:46:10 +00:00

Support adaptive forum userpic rounding radius.

This commit is contained in:
John Preston
2022-12-05 16:18:10 +04:00
parent 2407ac50bc
commit cb653df0f6
100 changed files with 662 additions and 724 deletions

View File

@@ -982,7 +982,7 @@ void Generator::paintUserpic(int x, int y, Row::Type type, int index, QString le
image.fill(Qt::transparent);
{
Painter p(&image);
userpic.paintRounded(p, 0, 0, size, size, size / 2);
userpic.paintCircle(p, 0, 0, size, size);
}
_p->drawImage(rtl() ? (_rect.width() - x - size) : x, y, image);
}