summaryrefslogtreecommitdiffstats
path: root/xlib
diff options
context:
space:
mode:
authorjan.nijtmans <jan.nijtmans@noemail.net>2012-05-29 15:08:30 (GMT)
committerjan.nijtmans <jan.nijtmans@noemail.net>2012-05-29 15:08:30 (GMT)
commit54074d88128fab0baea266c43a77bc6e9e8e2ca5 (patch)
tree7a8248e3b761a09cb1aa6973d874475fbc44bac4 /xlib
parentb3c2ac38909466a3f130c650ff542029d443aabb (diff)
downloadtk-54074d88128fab0baea266c43a77bc6e9e8e2ca5.zip
tk-54074d88128fab0baea266c43a77bc6e9e8e2ca5.tar.gz
tk-54074d88128fab0baea266c43a77bc6e9e8e2ca5.tar.bz2
Change XFillRectangle(s)/XDrawLines(s) signature to match Xorg, needed for Cygwin.
Generate same pkgIndex.tcl file for win32 and cygwin, one that is equally useable for both. FossilOrigin-Name: 4b760eba559b5980f9e68ce32bf28d04c06f1191
Diffstat (limited to 'xlib')
-rw-r--r--xlib/xdraw.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/xlib/xdraw.c b/xlib/xdraw.c
index 281a7e8..8ec924a 100644
--- a/xlib/xdraw.c
+++ b/xlib/xdraw.c
@@ -28,7 +28,7 @@
*----------------------------------------------------------------------
*/
-void
+int
XDrawLine(display, d, gc, x1, y1, x2, y2)
Display* display;
Drawable d;
@@ -41,7 +41,7 @@ XDrawLine(display, d, gc, x1, y1, x2, y2)
points[0].y = y1;
points[1].x = x2;
points[1].y = y2;
- XDrawLines(display, d, gc, points, 2, CoordModeOrigin);
+ return XDrawLines(display, d, gc, points, 2, CoordModeOrigin);
}
/*
@@ -61,7 +61,7 @@ XDrawLine(display, d, gc, x1, y1, x2, y2)
*----------------------------------------------------------------------
*/
-void
+int
XFillRectangle(display, d, gc, x, y, width, height)
Display* display;
Drawable d;
@@ -76,5 +76,5 @@ XFillRectangle(display, d, gc, x, y, width, height)
rectangle.y = y;
rectangle.width = width;
rectangle.height = height;
- XFillRectangles(display, d, gc, &rectangle, 1);
+ return XFillRectangles(display, d, gc, &rectangle, 1);
}