[aat] Fix older compilers by not referencing enum directly (#1340)
This commit is contained in:
parent
642c9dcf1b
commit
2e639c47c9
|
@ -427,13 +427,12 @@ struct LigatureSubtable
|
||||||
|
|
||||||
typedef LigatureEntry<Types::extended> LigatureEntryT;
|
typedef LigatureEntry<Types::extended> LigatureEntryT;
|
||||||
typedef typename LigatureEntryT::EntryData EntryData;
|
typedef typename LigatureEntryT::EntryData EntryData;
|
||||||
typedef typename LigatureEntryT::Flags Flags;
|
|
||||||
|
|
||||||
struct driver_context_t
|
struct driver_context_t
|
||||||
{
|
{
|
||||||
enum
|
enum
|
||||||
{
|
{
|
||||||
DontAdvance = LigatureEntry<Types::extended>::DontAdvance,
|
DontAdvance = LigatureEntryT::DontAdvance,
|
||||||
};
|
};
|
||||||
static const bool in_place = false;
|
static const bool in_place = false;
|
||||||
enum LigActionFlags
|
enum LigActionFlags
|
||||||
|
@ -470,7 +469,7 @@ struct LigatureSubtable
|
||||||
unsigned int flags = entry->flags;
|
unsigned int flags = entry->flags;
|
||||||
|
|
||||||
DEBUG_MSG (APPLY, nullptr, "Ligature transition at %d", buffer->idx);
|
DEBUG_MSG (APPLY, nullptr, "Ligature transition at %d", buffer->idx);
|
||||||
if (flags & Flags::SetComponent)
|
if (flags & LigatureEntryT::SetComponent)
|
||||||
{
|
{
|
||||||
if (unlikely (match_length >= ARRAY_LENGTH (match_positions)))
|
if (unlikely (match_length >= ARRAY_LENGTH (match_positions)))
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue