projects
/
platform
/
upstream
/
libHarfBuzzSharp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
45f3d98
)
[OTLayout] Use is_inplace() when flipping buffers
author
Behdad Esfahbod
<behdad@behdad.org>
Fri, 3 May 2013 22:10:10 +0000
(18:10 -0400)
committer
Behdad Esfahbod
<behdad@behdad.org>
Sat, 4 May 2013 20:04:04 +0000
(16:04 -0400)
src/hb-ot-layout.cc
patch
|
blob
|
history
diff --git
a/src/hb-ot-layout.cc
b/src/hb-ot-layout.cc
index
145cf8f
..
355f51c
100644
(file)
--- a/
src/hb-ot-layout.cc
+++ b/
src/hb-ot-layout.cc
@@
-804,6
+804,8
@@
apply_string (OT::hb_apply_context_t *c,
const hb_ot_layout_lookup_accelerator_t &accel)
{
bool ret = false;
+ OT::hb_is_inplace_context_t inplace_c (c->face);
+ bool inplace = lookup.is_inplace (&inplace_c);
if (unlikely (!c->buffer->len || !c->lookup_mask))
return false;
@@
-826,8
+828,13
@@
apply_string (OT::hb_apply_context_t *c,
else
c->buffer->next_glyph ();
}
- if (ret && Proxy::table_index == 0)
+ if (ret)
+ {
+ if (!inplace)
c->buffer->swap_buffers ();
+ else
+ assert (!c->buffer->has_separate_output ());
+ }
}
else
{