You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-11 13:10:58 +00:00
HarfBuzz: Update to version 5.2.0, add new Unicode 15 blocks and scripts.
This commit is contained in:
10
thirdparty/harfbuzz/src/hb-serialize.hh
vendored
10
thirdparty/harfbuzz/src/hb-serialize.hh
vendored
@@ -139,6 +139,14 @@ struct hb_serialize_context_t
|
||||
objidx = o.objidx;
|
||||
}
|
||||
#endif
|
||||
|
||||
HB_INTERNAL static int cmp (const void* a, const void* b)
|
||||
{
|
||||
int cmp = ((const link_t*)a)->position - ((const link_t*)b)->position;
|
||||
if (cmp) return cmp;
|
||||
|
||||
return ((const link_t*)a)->objidx - ((const link_t*)b)->objidx;
|
||||
}
|
||||
};
|
||||
|
||||
char *head;
|
||||
@@ -315,7 +323,7 @@ struct hb_serialize_context_t
|
||||
{
|
||||
object_t *obj = current;
|
||||
if (unlikely (!obj)) return;
|
||||
if (unlikely (in_error())) return;
|
||||
if (unlikely (in_error() && !only_overflow ())) return;
|
||||
|
||||
current = current->next;
|
||||
revert (obj->head, obj->tail);
|
||||
|
||||
Reference in New Issue
Block a user