mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +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;
|
auto emojiLength = 0;
|
||||||
if (const auto emoji = Ui::Emoji::Find(ch, end, &emojiLength)) {
|
if (const auto emoji = Ui::Emoji::Find(ch, end, &emojiLength)) {
|
||||||
const auto factor = style::DevicePixelRatio();
|
const auto factor = style::DevicePixelRatio();
|
||||||
emojiReplacements.emplace_back(
|
emojiReplacements.push_back({
|
||||||
Ui::Emoji::SinglePixmap(
|
.pixmap = Ui::Emoji::SinglePixmap(
|
||||||
emoji,
|
emoji,
|
||||||
st::normalFont->height * factor).scaledToHeight(
|
st::normalFont->height * factor).scaledToHeight(
|
||||||
roundedFont->ascent * factor,
|
roundedFont->ascent * factor,
|
||||||
Qt::SmoothTransformation),
|
Qt::SmoothTransformation),
|
||||||
ch - roundedText.constData(),
|
.from = int(ch - roundedText.constData()),
|
||||||
emojiLength);
|
.length = emojiLength,
|
||||||
|
});
|
||||||
ch += emojiLength;
|
ch += emojiLength;
|
||||||
} else {
|
} else {
|
||||||
ch++;
|
ch++;
|
||||||
|
|
Loading…
Add table
Reference in a new issue