summaryrefslogtreecommitdiffstats
path: root/macosx
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 /macosx
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 'macosx')
-rw-r--r--macosx/tkMacOSXDraw.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/macosx/tkMacOSXDraw.c b/macosx/tkMacOSXDraw.c
index 63e26a1..6805f28 100644
--- a/macosx/tkMacOSXDraw.c
+++ b/macosx/tkMacOSXDraw.c
@@ -550,7 +550,7 @@ TkPutImage(
*----------------------------------------------------------------------
*/
-void
+int
XDrawLines(
Display *display, /* Display. */
Drawable d, /* Draw on this. */
@@ -568,12 +568,12 @@ XDrawLines(
* TODO: generate BadValue error.
*/
- return;
+ return 0;
}
display->request++;
if (!TkMacOSXSetupDrawingContext(d, gc, tkMacOSXUseCGDrawing, &dc)) {
- return;
+ return 0;
}
if (dc.context) {
double prevx, prevy;
@@ -614,6 +614,7 @@ XDrawLines(
}
}
TkMacOSXRestoreDrawingContext(&dc);
+ return 1;
}
/*
@@ -902,7 +903,7 @@ XDrawRectangles(
*----------------------------------------------------------------------
*/
-void
+int
XFillRectangles(
Display* display, /* Display. */
Drawable d, /* Draw on this. */
@@ -917,7 +918,7 @@ XFillRectangles(
display->request++;
if (!TkMacOSXSetupDrawingContext(d, gc, tkMacOSXUseCGDrawing, &dc)) {
- return;
+ return 0;
}
if (dc.context) {
CGRect rect;
@@ -944,6 +945,7 @@ XFillRectangles(
}
}
TkMacOSXRestoreDrawingContext(&dc);
+ return 1;
}
/*