diff options
Diffstat (limited to 'experimental/tqtinterface/qt4/src/3rdparty/opentype/ftxopen.c')
-rw-r--r-- | experimental/tqtinterface/qt4/src/3rdparty/opentype/ftxopen.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/experimental/tqtinterface/qt4/src/3rdparty/opentype/ftxopen.c b/experimental/tqtinterface/qt4/src/3rdparty/opentype/ftxopen.c index f45e778d3..75f66be5f 100644 --- a/experimental/tqtinterface/qt4/src/3rdparty/opentype/ftxopen.c +++ b/experimental/tqtinterface/qt4/src/3rdparty/opentype/ftxopen.c @@ -1479,37 +1479,37 @@ | | byte 1 byte 2 - 00: (byte >> 14) & tqmask - 11: (byte >> 12) & tqmask + 00: (byte >> 14) & mask + 11: (byte >> 12) & mask ... - tqmask = 0x0003 + mask = 0x0003 | | format = 2: 0000111122223333|4444555566667777|... | | byte 1 byte 2 - 0000: (byte >> 12) & tqmask - 1111: (byte >> 8) & tqmask + 0000: (byte >> 12) & mask + 1111: (byte >> 8) & mask ... - tqmask = 0x000F + mask = 0x000F | | format = 3: 0000000011111111|2222222233333333|... | | byte 1 byte 2 - 00000000: (byte >> 8) & tqmask - 11111111: (byte >> 0) & tqmask + 00000000: (byte >> 8) & mask + 11111111: (byte >> 0) & mask .... - tqmask = 0x00FF */ + mask = 0x00FF */ FT_Error Get_Device( TTO_Device* d, FT_UShort size, FT_Short* value ) { - FT_UShort byte, bits, tqmask, f, s; + FT_UShort byte, bits, mask, f, s; f = d->DeltaFormat; @@ -1519,14 +1519,14 @@ s = size - d->StartSize; byte = d->DeltaValue[s >> ( 4 - f )]; bits = byte >> ( 16 - ( ( s % ( 1 << ( 4 - f ) ) + 1 ) << f ) ); - tqmask = 0xFFFF >> ( 16 - ( 1 << f ) ); + mask = 0xFFFF >> ( 16 - ( 1 << f ) ); - *value = (FT_Short)( bits & tqmask ); + *value = (FT_Short)( bits & mask ); /* conversion to a signed value */ - if ( *value >= ( ( tqmask + 1 ) >> 1 ) ) - *value -= tqmask + 1; + if ( *value >= ( ( mask + 1 ) >> 1 ) ) + *value -= mask + 1; return TT_Err_Ok; } |