[util] Simplify copy_buffer_properties()
Now that hb_buffer_append() overlays segment_properties we can do this. Part of https://github.com/harfbuzz/harfbuzz/issues/1555
This commit is contained in:
parent
101d07efd9
commit
34f5b855aa
|
@ -62,9 +62,6 @@ struct shape_options_t
|
||||||
|
|
||||||
static void copy_buffer_properties (hb_buffer_t *dst, hb_buffer_t *src)
|
static void copy_buffer_properties (hb_buffer_t *dst, hb_buffer_t *src)
|
||||||
{
|
{
|
||||||
hb_segment_properties_t props;
|
|
||||||
hb_buffer_get_segment_properties (src, &props);
|
|
||||||
hb_buffer_set_segment_properties (dst, &props);
|
|
||||||
hb_buffer_set_flags (dst, hb_buffer_get_flags (src));
|
hb_buffer_set_flags (dst, hb_buffer_get_flags (src));
|
||||||
hb_buffer_set_cluster_level (dst, hb_buffer_get_cluster_level (src));
|
hb_buffer_set_cluster_level (dst, hb_buffer_get_cluster_level (src));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue