diff options
author | fvogel <fvogelnew1@free.fr> | 2020-04-26 10:07:33 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2020-04-26 10:07:33 (GMT) |
commit | d1db7a46168db5d2e4a1dfcfb0386096a797aa4e (patch) | |
tree | 496d70734093423a8273c3adbf9001ded01ba549 /win/tkWinFont.c | |
parent | 4665e91c605a6ae30ea0f579f1e4481f9494fe40 (diff) | |
download | tk-d1db7a46168db5d2e4a1dfcfb0386096a797aa4e.zip tk-d1db7a46168db5d2e4a1dfcfb0386096a797aa4e.tar.gz tk-d1db7a46168db5d2e4a1dfcfb0386096a797aa4e.tar.bz2 |
Remove cast to int when calling MultiFontTextOut from TkDrawAngledChars (since x and y are doubles and MultiFontTextOut now accepts doubles).
Diffstat (limited to 'win/tkWinFont.c')
-rw-r--r-- | win/tkWinFont.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/win/tkWinFont.c b/win/tkWinFont.c index 63ca37a..41013d5 100644 --- a/win/tkWinFont.c +++ b/win/tkWinFont.c @@ -1294,11 +1294,11 @@ TkDrawAngledChars( */ PatBlt(dcMem, 0, 0, size.cx, size.cy, BLACKNESS); - MultiFontTextOut(dc, fontPtr, source, numBytes, (int)x, (int)y, angle); + MultiFontTextOut(dc, fontPtr, source, numBytes, x, y, angle); BitBlt(dc, (int)x, (int)y - tm.tmAscent, size.cx, size.cy, dcMem, 0, 0, 0xEA02E9); PatBlt(dcMem, 0, 0, size.cx, size.cy, WHITENESS); - MultiFontTextOut(dc, fontPtr, source, numBytes, (int)x, (int)y, angle); + MultiFontTextOut(dc, fontPtr, source, numBytes, x, y, angle); BitBlt(dc, (int)x, (int)y - tm.tmAscent, size.cx, size.cy, dcMem, 0, 0, 0x8A0E06); @@ -1315,7 +1315,7 @@ TkDrawAngledChars( SetTextAlign(dc, TA_LEFT | TA_BASELINE); SetTextColor(dc, gc->foreground); SetBkMode(dc, TRANSPARENT); - MultiFontTextOut(dc, fontPtr, source, numBytes, (int)x, (int)y, angle); + MultiFontTextOut(dc, fontPtr, source, numBytes, x, y, angle); } else { HBITMAP oldBitmap, bitmap; HDC dcMem; |