mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-08 16:13:56 +02:00
Fix call panel with empty user photo on Retina.
This commit is contained in:
parent
11d4c50202
commit
c9a26fd006
1 changed files with 1 additions and 0 deletions
|
@ -473,6 +473,7 @@ void Panel::createUserpicCache(ImagePtr image) {
|
|||
if (cRetina()) _userPhoto.setDevicePixelRatio(cRetinaFactor());
|
||||
} else {
|
||||
auto filled = QImage(QSize(st::callWidth, st::callWidth) * cIntRetinaFactor(), QImage::Format_ARGB32_Premultiplied);
|
||||
filled.setDevicePixelRatio(cRetinaFactor());
|
||||
{
|
||||
Painter p(&filled);
|
||||
EmptyUserpic(_user->colorIndex(), _user->name).paintSquare(p, 0, 0, st::callWidth, st::callWidth);
|
||||
|
|
Loading…
Add table
Reference in a new issue