Rename original_direction to target_direction

This commit is contained in:
Behdad Esfahbod 2010-12-07 16:22:02 -05:00
parent ee8aaf976a
commit bbbbe80ec9
2 changed files with 4 additions and 4 deletions

View File

@ -65,7 +65,7 @@ struct hb_ot_shape_context_t
unsigned int num_user_features; unsigned int num_user_features;
/* Transient stuff */ /* Transient stuff */
hb_direction_t original_direction; hb_direction_t target_direction;
hb_bool_t applied_substitute_complex; hb_bool_t applied_substitute_complex;
hb_bool_t applied_position_complex; hb_bool_t applied_position_complex;
}; };

View File

@ -193,7 +193,7 @@ hb_mirror_chars (hb_ot_shape_context_t *c)
{ {
hb_unicode_get_mirroring_func_t get_mirroring = c->buffer->unicode->v.get_mirroring; hb_unicode_get_mirroring_func_t get_mirroring = c->buffer->unicode->v.get_mirroring;
if (HB_DIRECTION_IS_FORWARD (c->original_direction)) if (HB_DIRECTION_IS_FORWARD (c->target_direction))
return; return;
hb_mask_t rtlm_mask = c->plan->map.get_1_mask (HB_TAG ('r','t','l','m')); hb_mask_t rtlm_mask = c->plan->map.get_1_mask (HB_TAG ('r','t','l','m'));
@ -294,7 +294,7 @@ static void
hb_ot_shape_execute_internal (hb_ot_shape_context_t *c) hb_ot_shape_execute_internal (hb_ot_shape_context_t *c)
{ {
/* Save the original direction, we use it later. */ /* Save the original direction, we use it later. */
c->original_direction = c->buffer->props.direction; c->target_direction = c->buffer->props.direction;
hb_reset_glyph_infos (c); /* BUFFER: Clear buffer var1 and var2 */ hb_reset_glyph_infos (c); /* BUFFER: Clear buffer var1 and var2 */
@ -336,7 +336,7 @@ hb_ot_shape_execute_internal (hb_ot_shape_context_t *c)
hb_position_complex_fallback_visual (c); hb_position_complex_fallback_visual (c);
} }
c->buffer->props.direction = c->original_direction; c->buffer->props.direction = c->target_direction;
} }
void void