summaryrefslogtreecommitdiffstats
path: root/macosx
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2016-11-07 14:15:04 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2016-11-07 14:15:04 (GMT)
commitf9626b8791b204e2abc39cfc211befbaa74d7202 (patch)
tree642e999aa3f8c172ac8b66ad3d0d43b485bda9bb /macosx
parentbdf82ef94f1819825be63c93d5966d57a1449c95 (diff)
downloadtk-f9626b8791b204e2abc39cfc211befbaa74d7202.zip
tk-f9626b8791b204e2abc39cfc211befbaa74d7202.tar.gz
tk-f9626b8791b204e2abc39cfc211befbaa74d7202.tar.bz2
Add another few Xlib stubs for Win32. Cherry-picked from [http://www.androwish.org/index.html/info/862eb620a096fddc|AndroWish]. Thanks to Christian Werner.
Diffstat (limited to 'macosx')
-rw-r--r--macosx/tkMacOSXDraw.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/macosx/tkMacOSXDraw.c b/macosx/tkMacOSXDraw.c
index f48538d..f85d6ac 100644
--- a/macosx/tkMacOSXDraw.c
+++ b/macosx/tkMacOSXDraw.c
@@ -880,7 +880,7 @@ XDrawLines(
*----------------------------------------------------------------------
*/
-void
+int
XDrawSegments(
Display *display,
Drawable d,
@@ -894,7 +894,7 @@ XDrawSegments(
display->request++;
if (!TkMacOSXSetupDrawingContext(d, gc, 1, &dc)) {
- return;
+ return BadDrawable;
}
if (dc.context) {
double o = (lw % 2) ? .5 : 0;
@@ -911,6 +911,7 @@ XDrawSegments(
}
}
TkMacOSXRestoreDrawingContext(&dc);
+ return Success;
}
/*