diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2016-11-07 14:15:04 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2016-11-07 14:15:04 (GMT) |
commit | 979a44d072c838f5e5a33e5520691b2de1d9f260 (patch) | |
tree | 642e999aa3f8c172ac8b66ad3d0d43b485bda9bb /xlib | |
parent | ea566f2ac0714ef7f7a6e3207a62b30cb3099ca4 (diff) | |
download | tk-979a44d072c838f5e5a33e5520691b2de1d9f260.zip tk-979a44d072c838f5e5a33e5520691b2de1d9f260.tar.gz tk-979a44d072c838f5e5a33e5520691b2de1d9f260.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')
-rw-r--r-- | xlib/X11/Xutil.h | 4 | ||||
-rw-r--r-- | xlib/xgc.c | 15 |
2 files changed, 11 insertions, 8 deletions
diff --git a/xlib/X11/Xutil.h b/xlib/X11/Xutil.h index 58124b0..bf372fb 100644 --- a/xlib/X11/Xutil.h +++ b/xlib/X11/Xutil.h @@ -535,7 +535,7 @@ extern Status XMatchVisualInfo( #endif ); -extern void XOffsetRegion( +extern int XOffsetRegion( #if NeedFunctionPrototypes Region /* r */, int /* dx */, @@ -814,7 +814,7 @@ extern void XUnionRectWithRegion( #endif ); -extern void XUnionRegion( +extern int XUnionRegion( #if NeedFunctionPrototypes Region /* sra */, Region /* srb */, @@ -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 |