Fix call panel with empty user photo on Retina.

This commit is contained in:
John Preston 2017-06-08 21:13:20 +02:00
parent 11d4c50202
commit c9a26fd006

View File

@ -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);