From 02e336a3fe60cf9e3cc1d90d2d2d3fa98e1a3a5a Mon Sep 17 00:00:00 2001 From: dkf Date: Thu, 12 Jul 2012 12:29:42 +0000 Subject: Type correctness fix, to stop compiler complaint. --- generic/tkInt.h | 2 +- unix/tkUnixRFont.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/generic/tkInt.h b/generic/tkInt.h index a95adf8..c30eceb 100644 --- a/generic/tkInt.h +++ b/generic/tkInt.h @@ -1187,7 +1187,7 @@ MODULE_SCOPE Status TkParseColor (Display * display, XColor * colorPtr); #endif #ifdef HAVE_XFT -MODULE_SCOPE void TkUnixSetXftClipRegion(Region clipRegion); +MODULE_SCOPE void TkUnixSetXftClipRegion(TkRegion clipRegion); #endif /* diff --git a/unix/tkUnixRFont.c b/unix/tkUnixRFont.c index deecceb..c3ece5e 100644 --- a/unix/tkUnixRFont.c +++ b/unix/tkUnixRFont.c @@ -810,10 +810,10 @@ Tk_DrawChars( void TkUnixSetXftClipRegion( - Region clipRegion) /* The clipping region to install. */ + TkRegion clipRegion) /* The clipping region to install. */ { ThreadSpecificData *tsdPtr = (ThreadSpecificData *) Tcl_GetThreadData(&dataKey, sizeof(ThreadSpecificData)); - tsdPtr->clipRegion = clipRegion; + tsdPtr->clipRegion = (Region) clipRegion; } -- cgit v0.12