[aat] Fix more builds

Maybe I should disable C++11 detection such that my compiler also catches
these.  Doesn't look like we can switch to it for a while anyway...
pull/703/head
Behdad Esfahbod 7 years ago
parent 72cb2b1f57
commit dd38db523a
  1. 2
      src/hb-aat-layout-common-private.hh
  2. 18
      src/hb-aat-layout-morx-table.hh

@ -637,7 +637,7 @@ struct StateTableDriver
c->transition (this, entry);
if (entry->flags & context_t::Flags::DontAdvance)
if (entry->flags & context_t::DontAdvance)
buffer->idx--; /* TODO Detect infinite loop. */
state = entry->newState;

@ -43,16 +43,16 @@ struct RearrangementSubtable
struct driver_context_t
{
enum Flags {
MarkFirst = 0x8000, /* If set, make the current glyph the first
* glyph to be rearranged. */
MarkFirst = 0x8000, /* If set, make the current glyph the first
* glyph to be rearranged. */
DontAdvance = 0x4000, /* If set, don't advance to the next glyph
* before going to the new state. This means
* that the glyph index doesn't change, even
* if the glyph at that index has changed. */
MarkLast = 0x2000, /* If set, make the current glyph the last
* glyph to be rearranged. */
Reserved = 0x1FF0, /* These bits are reserved and should be set to 0. */
Verb = 0x000F, /* The type of rearrangement specified. */
* before going to the new state. This means
* that the glyph index doesn't change, even
* if the glyph at that index has changed. */
MarkLast = 0x2000, /* If set, make the current glyph the last
* glyph to be rearranged. */
Reserved = 0x1FF0, /* These bits are reserved and should be set to 0. */
Verb = 0x000F, /* The type of rearrangement specified. */
};
inline driver_context_t (const RearrangementSubtable *table) :

Loading…
Cancel
Save