diff options
author | Dan Elkouby | 2019-12-29 14:24:15 +0200 |
---|---|---|
committer | Dan Elkouby | 2019-12-29 15:27:18 +0200 |
commit | 0964327125a8bc35fe18c2f5e8bc22cf6e57c969 (patch) | |
tree | 56c395d10ab9b027a157b41bd29e5b809399dc2e /no_circles.patch | |
parent | 49bd5aa5790a7e0fda365ba49b030f6ea8413af2 (diff) | |
download | aur-0964327125a8bc35fe18c2f5e8bc22cf6e57c969.tar.gz |
Add customizations
Diffstat (limited to 'no_circles.patch')
-rw-r--r-- | no_circles.patch | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/no_circles.patch b/no_circles.patch new file mode 100644 index 000000000000..4d0a56d69928 --- /dev/null +++ b/no_circles.patch @@ -0,0 +1,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()) { |