summaryrefslogtreecommitdiffstats
path: root/xlib
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2012-06-07 08:08:30 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2012-06-07 08:08:30 (GMT)
commitedb4cc7ce4e75ee2bd46f965f0724c54c134a1fd (patch)
tree7981088cb257579d4bcf74b7735557ca697528c7 /xlib
parent30a0f07209b1340b0060d238a1ec0bd3365f5692 (diff)
parente05c1d71ec11cc892731a999a9d521781ea8567e (diff)
downloadtk-edb4cc7ce4e75ee2bd46f965f0724c54c134a1fd.zip
tk-edb4cc7ce4e75ee2bd46f965f0724c54c134a1fd.tar.gz
tk-edb4cc7ce4e75ee2bd46f965f0724c54c134a1fd.tar.bz2
Change XChangeWindowAttributes signature and many others to match Xorg, needed for Cygwin
Diffstat (limited to 'xlib')
-rw-r--r--xlib/xgc.c42
1 files changed, 28 insertions, 14 deletions
diff --git a/xlib/xgc.c b/xlib/xgc.c
index 7722abd..6c5e31c 100644
--- a/xlib/xgc.c
+++ b/xlib/xgc.c
@@ -179,7 +179,7 @@ XCreateGC(
*----------------------------------------------------------------------
*/
-void
+int
XChangeGC(
Display *d,
GC gc,
@@ -217,6 +217,7 @@ XChangeGC(
gc->dashes = values->dashes;
(&(gc->dashes))[1] = 0;
}
+ return Success;
}
/*
@@ -235,7 +236,7 @@ XChangeGC(
*----------------------------------------------------------------------
*/
-void XFreeGC(
+int XFreeGC(
Display *d,
GC gc)
{
@@ -243,6 +244,7 @@ void XFreeGC(
FreeClipMask(gc);
ckfree((char *) gc);
}
+ return Success;
}
/*
@@ -262,22 +264,24 @@ void XFreeGC(
*----------------------------------------------------------------------
*/
-void
+int
XSetForeground(
Display *display,
GC gc,
unsigned long foreground)
{
gc->foreground = foreground;
+ return Success;
}
-void
+int
XSetBackground(
Display *display,
GC gc,
unsigned long background)
{
gc->background = background;
+ return Success;
}
int
@@ -305,34 +309,37 @@ XSetDashes(
return Success;
}
-void
+int
XSetFunction(
Display *display,
GC gc,
int function)
{
gc->function = function;
+ return Success;
}
-void
+int
XSetFillRule(
Display *display,
GC gc,
int fill_rule)
{
gc->fill_rule = fill_rule;
+ return Success;
}
-void
+int
XSetFillStyle(
Display *display,
GC gc,
int fill_style)
{
gc->fill_style = fill_style;
+ return Success;
}
-void
+int
XSetTSOrigin(
Display *display,
GC gc,
@@ -340,36 +347,40 @@ XSetTSOrigin(
{
gc->ts_x_origin = x;
gc->ts_y_origin = y;
+ return Success;
}
-void
+int
XSetFont(
Display *display,
GC gc,
Font font)
{
gc->font = font;
+ return Success;
}
-void
+int
XSetArcMode(
Display *display,
GC gc,
int arc_mode)
{
gc->arc_mode = arc_mode;
+ return Success;
}
-void
+int
XSetStipple(
Display *display,
GC gc,
Pixmap stipple)
{
gc->stipple = stipple;
+ return Success;
}
-void
+int
XSetLineAttributes(
Display *display,
GC gc,
@@ -382,9 +393,10 @@ XSetLineAttributes(
gc->line_style = line_style;
gc->cap_style = cap_style;
gc->join_style = join_style;
+ return Success;
}
-void
+int
XSetClipOrigin(
Display *display,
GC gc,
@@ -393,6 +405,7 @@ XSetClipOrigin(
{
gc->clip_x_origin = clip_x_origin;
gc->clip_y_origin = clip_y_origin;
+ return Success;
}
/*
@@ -435,7 +448,7 @@ TkSetRegion(
}
}
-void
+int
XSetClipMask(
Display *display,
GC gc,
@@ -449,6 +462,7 @@ XSetClipMask(
clip_mask->type = TKP_CLIP_PIXMAP;
clip_mask->value.pixmap = pixmap;
}
+ return Success;
}
/*