aboutsummaryrefslogtreecommitdiff
path: root/generated
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-11-17 09:47:45 +0100
committerdec05eba <dec05eba@protonmail.com>2021-11-17 09:59:29 +0100
commit453eac7f1f5ef70390ec51087fc1f190811a7507 (patch)
tree21a32ef6de9a3d7c29562484104b56c12518a6f0 /generated
parentfc49d40c0d2f6edbbe9dde1f1b53d6a17e9d9f7d (diff)
Replace sfml with mgl
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];
}
}