Skip to content

Commit

Permalink
Allow Twemoji downscale, because we took several 512 sprites.
Browse files Browse the repository at this point in the history
  • Loading branch information
john-preston committed Sep 18, 2023
1 parent 2d03abc commit 145c9e6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion codegen/emoji/generator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,8 @@ bool PaintSingleFromFile(QPainter &p, QRect targetRect, const Emoji &data, const
}
return QImage();
}();
const auto allowDownscale = (type == ImageType::JoyPixels);
const auto allowDownscale = (type == ImageType::JoyPixels)
|| (type == ImageType::Twemoji);
if (image.isNull()) {
std::cout << "NOT FOUND: " << checkNames[1].toStdString() << std::endl;
fillEmpty();
Expand Down

0 comments on commit 145c9e6

Please sign in to comment.