diff options
author | joye <joye> | 2015-06-02 19:46:58 (GMT) |
---|---|---|
committer | joye <joye> | 2015-06-02 19:46:58 (GMT) |
commit | f6fdac092ee08fe72e416ade97704b15cc2f1e34 (patch) | |
tree | e51c645663668eed6a9fa2006e222fc025729a36 /src | |
parent | 018d3d129300cab813e6638eabe6f4090ad5460b (diff) | |
download | blt-f6fdac092ee08fe72e416ade97704b15cc2f1e34.zip blt-f6fdac092ee08fe72e416ade97704b15cc2f1e34.tar.gz blt-f6fdac092ee08fe72e416ade97704b15cc2f1e34.tar.bz2 |
*** empty log message ***
Diffstat (limited to 'src')
-rw-r--r-- | src/bltGrText.C | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/bltGrText.C b/src/bltGrText.C index 62fd96a..8aa246e 100644 --- a/src/bltGrText.C +++ b/src/bltGrText.C @@ -93,8 +93,13 @@ void TextStyle::drawText(Drawable drawable, const char *text, int x, int y) Tk_TextLayout layout = Tk_ComputeTextLayout(ops->font, text, -1, -1, ops->justify, 0, &w1, &h1); Point2d rr = rotateText(x, y, w1, h1); +#if (TCL_MAJOR_VERSION == 8) || (TCL_MINOR_VERSION >= 6) TkDrawAngledTextLayout(graphPtr_->display_, drawable, gc_, layout, rr.x, rr.y, ops->angle, 0, -1); +#else + Tk_DrawTextLayout(graphPtr_->display_, drawable, gc_, layout, + rr.x, rr.y, 0, -1); +#endif } void TextStyle::drawText2(Drawable drawable, const char *text, @@ -112,8 +117,13 @@ void TextStyle::drawText2(Drawable drawable, const char *text, Tk_TextLayout layout = Tk_ComputeTextLayout(ops->font, text, -1, -1, ops->justify, 0, &w1, &h1); Point2d rr = rotateText(x, y, w1, h1); +#if (TCL_MAJOR_VERSION == 8) || (TCL_MINOR_VERSION >= 6) TkDrawAngledTextLayout(graphPtr_->display_, drawable, gc_, layout, rr.x, rr.y, ops->angle, 0, -1); +#else + Tk_DrawTextLayout(graphPtr_->display_, drawable, gc_, layout, + rr.x, rr.y, 0, -1); +#endif float angle = fmod(ops->angle, 360.0); if (angle < 0.0) |