aboutsummaryrefslogtreecommitdiff
path: root/generated
diff options
context:
space:
mode:
Diffstat (limited to 'generated')
-rw-r--r--generated/Emoji.cpp4
1 files changed, 2 insertions, 2 deletions
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 <assert.h>
// 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];
}
}