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 | 033e66e96af33c0ea2ee90e7a6eb6a63b9424f01 (patch) | |
tree | 329065a2785c3d6196bc67333bacb15c8379cce9 /win/tkWinFont.c | |
parent | 87d12d1ccc63df37fd805599bf29388c1d164e36 (diff) | |
parent | 107e2400ee9876bbfd0b4712307f642290498194 (diff) | |
download | tk-033e66e96af33c0ea2ee90e7a6eb6a63b9424f01.zip tk-033e66e96af33c0ea2ee90e7a6eb6a63b9424f01.tar.gz tk-033e66e96af33c0ea2ee90e7a6eb6a63b9424f01.tar.bz2 |
Slightly use of more "int" in stead of double, for 100% compatibility at script level.bug_434d294df
Diffstat (limited to 'win/tkWinFont.c')
-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; |