diff options
author | fvogel <fvogelnew1@free.fr> | 2023-10-29 14:40:01 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2023-10-29 14:40:01 (GMT) |
commit | 07671ba65e664b020c18c2fd26fccd278ef0dcb6 (patch) | |
tree | 0c63d8d2714ce8809da5c0fb8311d6e35ffb2205 /unix | |
parent | 3935855eaadf052cb793fbc2c416e65b73f2f24e (diff) | |
download | tk-07671ba65e664b020c18c2fd26fccd278ef0dcb6.zip tk-07671ba65e664b020c18c2fd26fccd278ef0dcb6.tar.gz tk-07671ba65e664b020c18c2fd26fccd278ef0dcb6.tar.bz2 |
Remove warnings when DEBUG_FONTSEL is defined. Commits like [6c1859a0] seem to have forgotten to propagate the changes to the DEBUG_FONTSEL case.
Diffstat (limited to 'unix')
-rw-r--r-- | unix/tkUnixRFont.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/unix/tkUnixRFont.c b/unix/tkUnixRFont.c index a295173..e3871a5 100644 --- a/unix/tkUnixRFont.c +++ b/unix/tkUnixRFont.c @@ -497,7 +497,8 @@ TkpGetFontFromAttributes( #ifdef DEBUG_FONTSEL printf("TkpGetFontFromAttributes %s-%d %d %d\n", faPtr->family, - faPtr->size, faPtr->weight, faPtr->slant); + (int) faPtr->size, + faPtr->weight, faPtr->slant); #endif /* DEBUG_FONTSEL */ pattern = XftPatternCreate(); if (faPtr->family) { @@ -940,7 +941,7 @@ Tk_DrawChars( if (fontPtr->ftDraw == 0) { #ifdef DEBUG_FONTSEL - printf("Switch to drawable 0x%x\n", drawable); + printf("Switch to drawable 0x%lx\n", drawable); #endif /* DEBUG_FONTSEL */ fontPtr->ftDraw = XftDrawCreate(display, drawable, DefaultVisual(display, fontPtr->screen), @@ -1199,7 +1200,7 @@ TkDrawAngledChars( if (fontPtr->ftDraw == 0) { #ifdef DEBUG_FONTSEL - printf("Switch to drawable 0x%x\n", drawable); + printf("Switch to drawable 0x%lx\n", drawable); #endif /* DEBUG_FONTSEL */ fontPtr->ftDraw = XftDrawCreate(display, drawable, DefaultVisual(display, fontPtr->screen), |