diff options
Diffstat (limited to 'src/kernel/tqtextengine_p.h')
-rw-r--r-- | src/kernel/tqtextengine_p.h | 60 |
1 files changed, 12 insertions, 48 deletions
diff --git a/src/kernel/tqtextengine_p.h b/src/kernel/tqtextengine_p.h index d092a3e7d..d3e8ea3ee 100644 --- a/src/kernel/tqtextengine_p.h +++ b/src/kernel/tqtextengine_p.h @@ -86,57 +86,28 @@ struct glyph_metrics_t int yoff; }; -#if defined( TQ_WS_X11 ) -typedef unsigned short glyph_t; - -struct qoffset_t { - short x; - short y; -}; - +typedef unsigned int glyph_t; typedef int advance_t; -struct TQScriptAnalysis -{ - unsigned short script : 7; - unsigned short bidiLevel : 6; // Unicode Bidi algorithm embedding level (0-61) - unsigned short override : 1; // Set when in LRO/RLO embedding - unsigned short reserved : 2; - bool operator == ( const TQScriptAnalysis &other ) { - return - script == other.script && - bidiLevel == other.bidiLevel; - // ### -// && override == other.override; - } +#if defined( TQ_WS_X11 ) || defined( TQ_WS_MAC ) -}; - -#elif defined( TQ_WS_MAC ) - -typedef unsigned short glyph_t; - -struct qoffset_t { +struct qoffset_t +{ short x; short y; }; -typedef int advance_t; - struct TQScriptAnalysis { unsigned short script : 7; unsigned short bidiLevel : 6; // Unicode Bidi algorithm embedding level (0-61) unsigned short override : 1; // Set when in LRO/RLO embedding unsigned short reserved : 2; - bool operator == ( const TQScriptAnalysis &other ) { - return - script == other.script && - bidiLevel == other.bidiLevel; - // ### -// && override == other.override; - } + bool operator== ( const TQScriptAnalysis &other ) + { + return script == other.script && bidiLevel == other.bidiLevel; + } }; #elif defined( TQ_WS_WIN ) @@ -144,15 +115,12 @@ struct TQScriptAnalysis // do not change the definitions below unless you know what you are doing! // it is designed to be compatible with the types found in uniscribe. -typedef unsigned short glyph_t; - -struct qoffset_t { +struct qoffset_t +{ int x; int y; }; -typedef int advance_t; - struct TQScriptAnalysis { unsigned short script :10; unsigned short rtl :1; @@ -174,13 +142,9 @@ struct TQScriptAnalysis { unsigned short engineReserved :2; }; -inline bool operator == ( const TQScriptAnalysis &sa1, const TQScriptAnalysis &sa2 ) +inline bool operator== ( const TQScriptAnalysis &sa1, const TQScriptAnalysis &sa2 ) { - return - sa1.script == sa2.script && - sa1.bidiLevel == sa2.bidiLevel; - // ### -// && override == other.override; + return sa1.script == sa2.script && sa1.bidiLevel == sa2.bidiLevel; } #endif |