diff --git a/Telegram/SourceFiles/data/stickers/data_custom_emoji.cpp b/Telegram/SourceFiles/data/stickers/data_custom_emoji.cpp index 3473d697d..3ab4fc330 100644 --- a/Telegram/SourceFiles/data/stickers/data_custom_emoji.cpp +++ b/Telegram/SourceFiles/data/stickers/data_custom_emoji.cpp @@ -850,7 +850,8 @@ Ui::Text::CustomEmojiFactory ReactedMenuFactory( : i->selectAnimation; const auto size = st::emojiSize * (i->centerIcon ? 2 : 1); const auto tag = Data::CustomEmojiManager::SizeTag::Normal; - const auto skip = (Data::FrameSizeFromTag(tag) - size) / 2; + const auto ratio = style::DevicePixelRatio(); + const auto skip = (Data::FrameSizeFromTag(tag) / ratio - size) / 2; return std::make_unique( std::make_unique( owner->customEmojiManager().create( diff --git a/Telegram/SourceFiles/history/view/reactions/history_view_reactions_tabs.cpp b/Telegram/SourceFiles/history/view/reactions/history_view_reactions_tabs.cpp index b3a83915c..80b76c85f 100644 --- a/Telegram/SourceFiles/history/view/reactions/history_view_reactions_tabs.cpp +++ b/Telegram/SourceFiles/history/view/reactions/history_view_reactions_tabs.cpp @@ -107,8 +107,8 @@ not_null CreateTab( p.drawImage(0, 0, state->cache); if (const auto custom = state->custom.get()) { using namespace Ui::Text; - const auto size = Ui::Emoji::GetSizeNormal(); - const auto shift = (height - (size / factor)) / 2; + const auto size = Ui::Emoji::GetSizeNormal() / factor; + const auto shift = (height - size) / 2; const auto skip = (size - AdjustCustomEmojiSize(size)) / 2; custom->paint(p, { .preview = (state->selected