summaryrefslogtreecommitdiffstats
path: root/generic/tkCanvText.c
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2008-11-23 15:08:58 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2008-11-23 15:08:58 (GMT)
commitf076aaec153492989a9db5f05d99727dc8843d4b (patch)
tree77ddf939ca99ea7b787a603ab5d905a2c58ed959 /generic/tkCanvText.c
parenteaf11f89f7e9fa53e805d3106d07b59a3a4f128a (diff)
downloadtk-f076aaec153492989a9db5f05d99727dc8843d4b.zip
tk-f076aaec153492989a9db5f05d99727dc8843d4b.tar.gz
tk-f076aaec153492989a9db5f05d99727dc8843d4b.tar.bz2
Formatting
Diffstat (limited to 'generic/tkCanvText.c')
-rw-r--r--generic/tkCanvText.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/generic/tkCanvText.c b/generic/tkCanvText.c
index b92add0..3f6900b 100644
--- a/generic/tkCanvText.c
+++ b/generic/tkCanvText.c
@@ -9,7 +9,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkCanvText.c,v 1.34 2008/11/22 20:05:32 patthoyts Exp $
+ * RCS: @(#) $Id: tkCanvText.c,v 1.35 2008/11/23 15:08:58 dkf Exp $
*/
#include <stdio.h>
@@ -1191,8 +1191,8 @@ TextToPoint(
px = pointPtr[0] - textPtr->drawOrigin[0];
py = pointPtr[1] - textPtr->drawOrigin[1];
value = (double) Tk_DistanceToTextLayout(textPtr->textLayout,
- (int)(px*textPtr->cosine - py*textPtr->sine),
- (int)(py*textPtr->cosine + px*textPtr->sine));
+ (int) (px*textPtr->cosine - py*textPtr->sine),
+ (int) (py*textPtr->cosine + px*textPtr->sine));
if ((state == TK_STATE_HIDDEN) || (textPtr->color == NULL) ||
(textPtr->text == NULL) || (*textPtr->text == 0)) {
@@ -1385,10 +1385,10 @@ GetTextIndex(
goto badIndex;
}
y = (int) ((tmp < 0) ? tmp - 0.5 : tmp + 0.5);
- x += canvasPtr->scrollX1 - (int)textPtr->drawOrigin[0];
- y += canvasPtr->scrollY1 - (int)textPtr->drawOrigin[1];
+ x += canvasPtr->scrollX1 - (int) textPtr->drawOrigin[0];
+ y += canvasPtr->scrollY1 - (int) textPtr->drawOrigin[1];
*indexPtr = Tk_PointToChar(textPtr->textLayout,
- (int)(x*c-y*s), (int)(y*c+x*s));
+ (int) (x*c - y*s), (int) (y*c + x*s));
} else if (Tcl_GetIntFromObj(NULL, obj, indexPtr) == TCL_OK) {
if (*indexPtr < 0) {
*indexPtr = 0;