Skip to content

Commit

Permalink
fixed low quality corner
Browse files Browse the repository at this point in the history
  • Loading branch information
xmdnx committed Feb 25, 2024
1 parent 9555e25 commit e20c3b0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Telegram/SourceFiles/data/data_peer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ void PeerData::paintUserpic(
isForum());

p.save();

auto hq = PainterHighQualityEnabler(p);
QPainterPath roundedRect;
QImage image = view.cached;
roundedRect.addRoundedRect(
Expand All @@ -356,7 +356,6 @@ void PeerData::paintUserpic(
size * RabbitSettings::JsonSettings::GetInt("userpic_roundness") / 100);
p.setClipPath(roundedRect);
p.drawImage(x, y, image);

p.restore();
/* p.drawImage(QRect(x, y, size, size), view.cached); */
}
Expand Down

0 comments on commit e20c3b0

Please sign in to comment.