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 | f9626b8791b204e2abc39cfc211befbaa74d7202 (patch) | |
tree | 642e999aa3f8c172ac8b66ad3d0d43b485bda9bb /xlib | |
parent | bdf82ef94f1819825be63c93d5966d57a1449c95 (diff) | |
download | tk-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')
-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 |