Skip to content

Commit

Permalink
hq painter for userpics
Browse files Browse the repository at this point in the history
  • Loading branch information
xmdnx committed Apr 7, 2024
1 parent 3c8b5ef commit 171a804
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions Telegram/SourceFiles/data/data_peer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,7 @@ void PeerData::paintUserpic(
int x,
int y,
int size) const {
const auto hq = PainterHighQualityEnabler(p);
const auto cloud = userpicCloudImage(view);
const auto ratio = style::DevicePixelRatio();
Ui::ValidateUserpicCache(
Expand Down
2 changes: 2 additions & 0 deletions Telegram/SourceFiles/dialogs/ui/dialogs_video_userpic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ void VideoUserpic::paintLeft(
int w,
int size,
bool paused) {
const auto hq = PainterHighQualityEnabler(p);

_lastSize = size;

const auto photoId = _peer->userpicPhotoId();
Expand Down

0 comments on commit 171a804

Please sign in to comment.