mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-02 07:25:46 +00:00
Version 0.10.14 alpha: fixed retina icon userpics, langs updated.
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user