diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2017-05-19 12:45:35 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2017-05-19 12:45:35 (GMT) |
commit | 59397f45e5a4819512c43d7ace8b14e1dbecc79b (patch) | |
tree | 329065a2785c3d6196bc67333bacb15c8379cce9 /win | |
parent | 287992b11802f6db4858b4774ea45a92a734cba7 (diff) | |
parent | 3cd4896cce0f31dd0ae402a6ac1abcb18c52e03f (diff) | |
download | tk-59397f45e5a4819512c43d7ace8b14e1dbecc79b.zip tk-59397f45e5a4819512c43d7ace8b14e1dbecc79b.tar.gz tk-59397f45e5a4819512c43d7ace8b14e1dbecc79b.tar.bz2 |
Slightly use of more "int" in stead of double, for 100% compatibility at script level.
Diffstat (limited to 'win')
-rw-r--r-- | win/tkWinFont.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/win/tkWinFont.c b/win/tkWinFont.c index b7b0bec..d67ea66 100644 --- a/win/tkWinFont.c +++ b/win/tkWinFont.c @@ -763,7 +763,7 @@ TkpGetFontAttrsForChar( ReleaseDC(fontPtr->hwnd, hdc); faPtr->family = familyPtr->faceName; faPtr->size = TkFontGetPoints(tkwin, - tm.tmInternalLeading - tm.tmHeight); + (double)(tm.tmInternalLeading - tm.tmHeight)); faPtr->weight = (tm.tmWeight > FW_MEDIUM) ? TK_FW_BOLD : TK_FW_NORMAL; faPtr->slant = tm.tmItalic ? TK_FS_ITALIC : TK_FS_ROMAN; faPtr->underline = (tm.tmUnderlined != 0); @@ -1600,7 +1600,7 @@ InitFont( faPtr->family = Tk_GetUid(Tcl_DStringValue(&faceString)); faPtr->size = - TkFontGetPoints(tkwin, -(fontPtr->pixelSize)); + TkFontGetPoints(tkwin, (double)-(fontPtr->pixelSize)); faPtr->weight = (tm.tmWeight > FW_MEDIUM) ? TK_FW_BOLD : TK_FW_NORMAL; faPtr->slant = (tm.tmItalic != 0) ? TK_FS_ITALIC : TK_FS_ROMAN; |