blob: 27850f7ee42a6b84ec0e013591627ba5973b6499 (
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 6fce4b879..df9229b02 100644
--- a/Telegram/SourceFiles/ui/image/image.cpp
+++ b/Telegram/SourceFiles/ui/image/image.cpp
@@ -203,6 +203,7 @@ const QPixmap &Image::pixRounded(
}
const QPixmap &Image::pixCircled(int w, int h) const {
+ return pixRounded(w, h, ImageRoundRadius::Large, RectPart::AllCorners);
if (w <= 0 || !width() || !height()) {
w = width();
} else {
|