summaryrefslogtreecommitdiffstats
path: root/xlib/xgc.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2019-10-01 14:14:17 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2019-10-01 14:14:17 (GMT)
commitdc6ec74c65be90b8f27bbaf6c5cdf0191a249ca6 (patch)
treefce745f5a19fe4f7b8e20e8957c82b877e70c18d /xlib/xgc.c
parent29b13551eedd3ef419e3decc1d3bff21e188be7d (diff)
downloadtk-dc6ec74c65be90b8f27bbaf6c5cdf0191a249ca6.zip
tk-dc6ec74c65be90b8f27bbaf6c5cdf0191a249ca6.tar.gz
tk-dc6ec74c65be90b8f27bbaf6c5cdf0191a249ca6.tar.bz2
Modify TkClipBox and friends such that they return an int (normally 0) in stead of void. Reason: the X11 variant does this as well, this way we keep it the same on all platforms.
Diffstat (limited to 'xlib/xgc.c')
-rw-r--r--xlib/xgc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/xlib/xgc.c b/xlib/xgc.c
index 9eaf7ae..e2fdf52 100644
--- a/xlib/xgc.c
+++ b/xlib/xgc.c
@@ -458,7 +458,7 @@ XSetClipOrigin(
*----------------------------------------------------------------------
*/
-void
+int
TkSetRegion(
Display *display,
GC gc,
@@ -475,6 +475,7 @@ TkSetRegion(
TkpRetainRegion(r);
#endif
}
+ return Success;
}
int