From 453eac7f1f5ef70390ec51087fc1f190811a7507 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Wed, 17 Nov 2021 09:47:45 +0100 Subject: Replace sfml with mgl --- generated/Emoji.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'generated') diff --git a/generated/Emoji.cpp b/generated/Emoji.cpp index 999e909..c3b8b21 100644 --- a/generated/Emoji.cpp +++ b/generated/Emoji.cpp @@ -1,5 +1,4 @@ #include "Emoji.hpp" -#include // This file was automatically generated with generate-emoji-sprite.py, do not edit manually! @@ -2940,7 +2939,8 @@ namespace QuickMedia { } EmojiRectangle emoji_get_extents(uint32_t codepoint) { - assert(codepoint_is_emoji(codepoint)); + if(codepoint < 0x1F000 || codepoint - 0x1F000 >= 2928) + return { 0, 0, 0, 0 }; return emoji_extents[codepoint - 0x1F000]; } } -- cgit v1.2.3