2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-01 23:25:15 +00:00

Version 0.10.14 alpha: fixed retina icon userpics, langs updated.

This commit is contained in:
John Preston
2016-10-18 15:00:25 +03:00
parent 2f4b2d0a33
commit b33b59b8b9
2 changed files with 7 additions and 7 deletions

View File

@@ -55,11 +55,11 @@ struct ColorReferenceWrap {
ImagePtr generateUserpicImage(const style::icon &icon) {
auto data = QImage(icon.width() * cIntRetinaFactor(), icon.height() * cIntRetinaFactor(), QImage::Format_ARGB32_Premultiplied);
data.setDevicePixelRatio(cRetinaFactor());
{
Painter p(&data);
icon.paint(p, 0, 0, icon.width());
}
data.setDevicePixelRatio(cRetinaFactor());
return ImagePtr(App::pixmapFromImageInPlace(std_::move(data)), "PNG");
}