Moved out Stickers::EmojiImageLoader to td_ui.

This commit is contained in:
23rd 2024-03-24 00:14:37 +03:00
parent 4b4de9d5aa
commit 5e11c43f84
4 changed files with 5 additions and 3 deletions

View File

@ -392,8 +392,6 @@ PRIVATE
chat_helpers/spellchecker_common.h
chat_helpers/stickers_dice_pack.cpp
chat_helpers/stickers_dice_pack.h
chat_helpers/stickers_emoji_image_loader.cpp
chat_helpers/stickers_emoji_image_loader.h
chat_helpers/stickers_emoji_pack.cpp
chat_helpers/stickers_emoji_pack.h
chat_helpers/stickers_gift_box_pack.cpp

View File

@ -28,7 +28,7 @@ void EmojiImageLoader::init(
QImage EmojiImageLoader::prepare(EmojiPtr emoji) const {
const auto loaded = _images->ensureLoaded();
const auto factor = cIntRetinaFactor();
const auto factor = style::DevicePixelRatio();
const auto side = st::largeEmojiSize + 2 * st::largeEmojiOutline;
auto tinted = QImage(
QSize(st::largeEmojiSize, st::largeEmojiSize) * factor,

View File

@ -7,6 +7,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
*/
#pragma once
#include <crl/crl_object_on_queue.h>
#include "ui/emoji_config.h"
namespace Stickers {

View File

@ -63,6 +63,9 @@ PRIVATE
calls/group/ui/desktop_capture_choose_source.cpp
calls/group/ui/desktop_capture_choose_source.h
chat_helpers/stickers_emoji_image_loader.cpp
chat_helpers/stickers_emoji_image_loader.h
core/file_location.cpp
core/file_location.h
core/mime_type.cpp