Fix dpi scaling of avatars
This commit is contained in:
parent
b1634d60a0
commit
1e7756c508
2 changed files with 4 additions and 4 deletions
|
|
@ -82,7 +82,7 @@ clipRadius(QImage img, double radius)
|
|||
painter.setRenderHint(QPainter::SmoothPixmapTransform, true);
|
||||
|
||||
QPainterPath ppath;
|
||||
ppath.addRoundedRect(img.rect(), radius, radius);
|
||||
ppath.addRoundedRect(img.rect(), radius, radius, Qt::SizeMode::RelativeSize);
|
||||
|
||||
painter.setClipPath(ppath);
|
||||
painter.drawImage(img.rect(), img);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue