projects
/
apps
/
core
/
preloaded
/
video-player.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fdc322a
)
Make feature sorting stable
author
Behdad Esfahbod
<behdad@behdad.org>
Wed, 2 Jun 2010 03:03:54 +0000
(23:03 -0400)
committer
Behdad Esfahbod
<behdad@behdad.org>
Wed, 2 Jun 2010 03:03:54 +0000
(23:03 -0400)
src/hb-ot-shape.cc
patch
|
blob
|
history
diff --git
a/src/hb-ot-shape.cc
b/src/hb-ot-shape.cc
index
1fe0d17
..
705d1f5
100644
(file)
--- a/
src/hb-ot-shape.cc
+++ b/
src/hb-ot-shape.cc
@@
-102,6
+102,7
@@
struct hb_mask_allocator_t {
struct feature_info_t {
hb_tag_t tag;
unsigned int value;
+ unsigned int seq;
bool global;
static int
@@
-113,7
+114,7
@@
struct hb_mask_allocator_t {
if (a->tag != b->tag)
return a->tag < b->tag ? -1 : 1;
- return
p1 < p2
? -1 : 1;
+ return
a->seq < b->seq
? -1 : 1;
}
};
@@
-142,6
+143,7
@@
struct hb_mask_allocator_t {
feature_info_t *info = &infos[count++];
info->tag = tag;
info->value = value;
+ info->seq = count;
info->global = global;
}