mirror of
https://github.com/harfbuzz/harfbuzz.git
synced 2025-04-13 08:42:59 +00:00
[VARC] Minor move variable closer to use
This commit is contained in:
parent
0a1b26b862
commit
081fcbdf5a
1 changed files with 1 additions and 1 deletions
|
@ -145,7 +145,6 @@ VarComponent::get_path_at (hb_font_t *font,
|
|||
|
||||
auto &VARC = *font->face->table.VARC;
|
||||
auto &varStore = &VARC+VARC.varStore;
|
||||
auto instancer = MultiItemVarStoreInstancer(&varStore, nullptr, coords, cache);
|
||||
|
||||
#define READ_UINT32VAR(name) \
|
||||
HB_STMT_START { \
|
||||
|
@ -188,6 +187,7 @@ VarComponent::get_path_at (hb_font_t *font,
|
|||
unsigned conditionIndex;
|
||||
READ_UINT32VAR (conditionIndex);
|
||||
const auto &condition = (&VARC+VARC.conditionList)[conditionIndex];
|
||||
auto instancer = MultiItemVarStoreInstancer(&varStore, nullptr, coords, cache);
|
||||
show = condition.evaluate (coords.arrayZ, coords.length, &instancer);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue