summaryrefslogtreecommitdiffstats
path: root/win/tkWinDraw.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2012-05-29 15:08:30 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2012-05-29 15:08:30 (GMT)
commit406db445ef0a95a9d3b5ac77690326f9cc1a07a2 (patch)
tree7a8248e3b761a09cb1aa6973d874475fbc44bac4 /win/tkWinDraw.c
parentba34893472773623c15b6e7b5a6739213d6b4edf (diff)
downloadtk-406db445ef0a95a9d3b5ac77690326f9cc1a07a2.zip
tk-406db445ef0a95a9d3b5ac77690326f9cc1a07a2.tar.gz
tk-406db445ef0a95a9d3b5ac77690326f9cc1a07a2.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.
Diffstat (limited to 'win/tkWinDraw.c')
-rwxr-xr-xwin/tkWinDraw.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/win/tkWinDraw.c b/win/tkWinDraw.c
index 805dde3..fea17d3 100755
--- a/win/tkWinDraw.c
+++ b/win/tkWinDraw.c
@@ -620,7 +620,7 @@ TkPutImage(colors, ncolors, display, d, gc, image, src_x, src_y, dest_x,
*----------------------------------------------------------------------
*/
-void
+int
XFillRectangles(display, d, gc, rectangles, nrectangles)
Display* display;
Drawable d;
@@ -635,7 +635,7 @@ XFillRectangles(display, d, gc, rectangles, nrectangles)
HBRUSH brush, oldBrush;
if (d == None) {
- return;
+ return 0;
}
dc = TkWinGetDrawableDC(display, d, &state);
@@ -722,6 +722,7 @@ XFillRectangles(display, d, gc, rectangles, nrectangles)
}
DeleteObject(brush);
TkWinReleaseDrawableDC(d, dc, &state);
+ return 1;
}
/*
@@ -871,7 +872,7 @@ RenderObject(dc, gc, points, npoints, mode, pen, func)
*----------------------------------------------------------------------
*/
-void
+int
XDrawLines(display, d, gc, points, npoints, mode)
Display* display;
Drawable d;
@@ -885,7 +886,7 @@ XDrawLines(display, d, gc, points, npoints, mode)
HDC dc;
if (d == None) {
- return;
+ return 0;
}
dc = TkWinGetDrawableDC(display, d, &state);
@@ -896,6 +897,7 @@ XDrawLines(display, d, gc, points, npoints, mode)
DeleteObject(pen);
TkWinReleaseDrawableDC(d, dc, &state);
+ return 1;
}
/*