summaryrefslogtreecommitdiffstats
path: root/xlib/xgc.c
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 /xlib/xgc.c
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 'xlib/xgc.c')
-rw-r--r--xlib/xgc.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/xlib/xgc.c b/xlib/xgc.c
index e097d2e..1e720fb 100644
--- a/xlib/xgc.c
+++ b/xlib/xgc.c
@@ -520,7 +520,7 @@ XDrawImageString(
}
#endif
-void
+int
XDrawPoint(
Display *display,
Drawable d,
@@ -528,10 +528,10 @@ XDrawPoint(
int x,
int y)
{
- XDrawLine(display, d, gc, x, y, x, y);
+ return XDrawLine(display, d, gc, x, y, x, y);
}
-void
+int
XDrawPoints(
Display *display,
Drawable d,
@@ -541,15 +541,17 @@ XDrawPoints(
int mode)
{
int i;
+ int result = Success;
- for (i=0; i<npoints; i++) {
- XDrawLine(display, d, gc,
+ for (i=0; (i<npoints) && (result == Success); i++) {
+ result = XDrawLine(display, d, gc,
points[i].x, points[i].y, points[i].x, points[i].y);
}
+ return result;
}
#if !defined(MAC_OSX_TK)
-void
+int
XDrawSegments(
Display *display,
Drawable d,
@@ -557,6 +559,7 @@ XDrawSegments(
XSegment *segments,
int nsegments)
{
+ return Success;
}
#endif