From a2fc7b287de1b1eeaa1a2fba141b7e348819b68d Mon Sep 17 00:00:00 2001 From: lecoanet Date: Wed, 8 Oct 2003 08:08:36 +0000 Subject: Fixed the return type of the ZnPointInRegion prototype to return a ZnBool --- generic/Types.h | 2 +- win/WinPort.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/generic/Types.h b/generic/Types.h index 65dd82e..a7dd5a5 100644 --- a/generic/Types.h +++ b/generic/Types.h @@ -163,7 +163,7 @@ EXTERN void XDrawLine(Display* display, Drawable d, GC gc, EXTERN void XDrawLines(Display* display, Drawable d, GC gc, XPoint* points, int npoints, int mode); -EXTERN void ZnPointInRegion(TkRegion reg, int x, int y); +EXTERN ZnBool ZnPointInRegion(TkRegion reg, int x, int y); EXTERN void ZnUnionRegion(TkRegion sra, TkRegion srb, TkRegion dr_return); EXTERN void ZnOffsetRegion(TkRegion reg, int dx, int dy); diff --git a/win/WinPort.c b/win/WinPort.c index 569b0ad..e530ad3 100644 --- a/win/WinPort.c +++ b/win/WinPort.c @@ -51,12 +51,12 @@ static const char compile_id[]="$Compile$"; * *---------------------------------------------------------------------- */ -int +ZnBool ZnPointInRegion(TkRegion reg, int x, int y) { - return PtInRegion((HRGN) reg, x, y); + return (ZnBool) PtInRegion((HRGN) reg, x, y); } /* -- cgit v1.1