summaryrefslogtreecommitdiffstats
path: root/generic/tkFont.c
diff options
context:
space:
mode:
authorpatthoyts <patthoyts@users.sourceforge.net>2009-10-21 21:22:26 (GMT)
committerpatthoyts <patthoyts@users.sourceforge.net>2009-10-21 21:22:26 (GMT)
commitaf8c392558252e9cc2550c8b32e5a254569f29eb (patch)
treed5cda8d8137eb17e4e5cb20d922bc1e27e9a0134 /generic/tkFont.c
parent193aa9db6184f16536df9a3e3719257101cfc0b3 (diff)
downloadtk-af8c392558252e9cc2550c8b32e5a254569f29eb.zip
tk-af8c392558252e9cc2550c8b32e5a254569f29eb.tar.gz
tk-af8c392558252e9cc2550c8b32e5a254569f29eb.tar.bz2
Add cast to int to silence warning on msvc.
Diffstat (limited to 'generic/tkFont.c')
-rw-r--r--generic/tkFont.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/generic/tkFont.c b/generic/tkFont.c
index 47852ca..ebd2e3a 100644
--- a/generic/tkFont.c
+++ b/generic/tkFont.c
@@ -10,7 +10,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkFont.c,v 1.59 2009/10/10 17:42:50 dkf Exp $
+ * RCS: @(#) $Id: tkFont.c,v 1.60 2009/10/21 21:22:26 patthoyts Exp $
*/
#include "tkInt.h"
@@ -2378,7 +2378,8 @@ TkDrawAngledTextLayout(
dy = -sinA * (chunkPtr->x + drawX) + cosA * (chunkPtr->y);
if (angle == 0.0) {
Tk_DrawChars(display, drawable, gc, layoutPtr->tkfont,
- firstByte, lastByte - firstByte, x + dx, y + dy);
+ firstByte, lastByte - firstByte,
+ (int)(x + dx), (int)(y + dy));
} else {
TkpDrawAngledChars(display, drawable, gc, layoutPtr->tkfont,
firstByte, lastByte - firstByte, x+dx, y+dy, angle);