Skip to content

Commit

Permalink
Beta version 5.8.5: Fix build with Xcode.
Browse files Browse the repository at this point in the history
  • Loading branch information
john-preston committed Nov 29, 2024
1 parent 61ceb66 commit 96398da
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Telegram/SourceFiles/ui/chat/chats_filter_tag.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,15 @@ QImage ChatsFilterTag(QString roundedText, QColor color, bool active) {
auto emojiLength = 0;
if (const auto emoji = Ui::Emoji::Find(ch, end, &emojiLength)) {
const auto factor = style::DevicePixelRatio();
emojiReplacements.emplace_back(
Ui::Emoji::SinglePixmap(
emojiReplacements.push_back({
.pixmap = Ui::Emoji::SinglePixmap(
emoji,
st::normalFont->height * factor).scaledToHeight(
roundedFont->ascent * factor,
Qt::SmoothTransformation),
ch - roundedText.constData(),
emojiLength);
.from = int(ch - roundedText.constData()),
.length = emojiLength,
});
ch += emojiLength;
} else {
ch++;
Expand Down

0 comments on commit 96398da

Please sign in to comment.