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/xgc.c | |
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/xgc.c')
-rw-r--r-- | xlib/xgc.c | 15 |
1 files changed, 9 insertions, 6 deletions
@@ -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 |