mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 14:17:12 +02:00
Beta version 5.8.5: Fix build with Xcode.
This commit is contained in:
parent
61ceb66415
commit
96398daa78
1 changed files with 5 additions and 4 deletions
|
@ -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++;
|
||||
|
|
Loading…
Add table
Reference in a new issue