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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user