blob: 4d0a56d69928e9a6324e391db168164eb5d5704c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
Description: changes all round pictures to rounded rectangles
Credits: novie
diff --git a/Telegram/SourceFiles/ui/image/image.cpp b/Telegram/SourceFiles/ui/image/image.cpp
index 559e0e9b5..24afa50e7 100644
--- a/Telegram/SourceFiles/ui/image/image.cpp
+++ b/Telegram/SourceFiles/ui/image/image.cpp
@@ -609,6 +609,7 @@ const QPixmap &Image::pixCircled(
Data::FileOrigin origin,
int32 w,
int32 h) const {
+ return pixRounded(origin, w, h, ImageRoundRadius::Large, RectPart::AllCorners);
checkSource();
if (w <= 0 || !width() || !height()) {
|