2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Fix forum userpic rounding on Retina screens.

This commit is contained in:
John Preston
2022-12-06 16:38:54 +04:00
parent 3649cb41e2
commit d5c145b707
4 changed files with 10 additions and 12 deletions

View File

@@ -353,7 +353,7 @@ QImage PeerData::generateUserpicImage(
const auto round = [&](int radius) {
return Images::Round(
std::move(image),
Images::CornersMask(radius));
Images::CornersMask(radius / style::DevicePixelRatio()));
};
if (radius == 0) {
return image;