summaryrefslogtreecommitdiffstats
path: root/mac
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)
commitc985425b2f03e2e14bf3f7ee9884cd74c184373e (patch)
tree7a8248e3b761a09cb1aa6973d874475fbc44bac4 /mac
parentd7e1d66497a877b980042968a57edd01d2840818 (diff)
downloadtk-c985425b2f03e2e14bf3f7ee9884cd74c184373e.zip
tk-c985425b2f03e2e14bf3f7ee9884cd74c184373e.tar.gz
tk-c985425b2f03e2e14bf3f7ee9884cd74c184373e.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 'mac')
-rw-r--r--mac/tkMacDraw.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/mac/tkMacDraw.c b/mac/tkMacDraw.c
index ddf23d2..720dd71 100644
--- a/mac/tkMacDraw.c
+++ b/mac/tkMacDraw.c
@@ -399,7 +399,7 @@ TkPutImage(
*----------------------------------------------------------------------
*/
-void
+int
XFillRectangles(
Display* display, /* Display. */
Drawable d, /* Draw on this. */
@@ -433,6 +433,7 @@ XFillRectangles(
}
SetGWorld(saveWorld, saveDevice);
+ return 1;
}
/*
@@ -451,7 +452,7 @@ XFillRectangles(
*----------------------------------------------------------------------
*/
-void
+int
XDrawLines(
Display* display, /* Display. */
Drawable d, /* Draw on this. */
@@ -470,7 +471,7 @@ XDrawLines(
display->request++;
if (npoints < 2) {
- return; /* TODO: generate BadValue error. */
+ return 0; /* TODO: generate BadValue error. */
}
GetGWorld(&saveWorld, &saveDevice);
SetGWorld(destPort, NULL);
@@ -495,6 +496,7 @@ XDrawLines(
}
SetGWorld(saveWorld, saveDevice);
+ return 1;
}
/*