summaryrefslogtreecommitdiff
path: root/transform.c
diff options
context:
space:
mode:
Diffstat (limited to 'transform.c')
-rw-r--r--transform.c19
1 files changed, 11 insertions, 8 deletions
diff --git a/transform.c b/transform.c
index 60a717a..7f78da1 100644
--- a/transform.c
+++ b/transform.c
@@ -26,21 +26,20 @@ other dealings in this Software without prior written authorization
from The Open Group.
*/
+/* $XFree86: xc/programs/oclock/transform.c,v 3.5 2001/12/14 20:01:00 dawes Exp $ */
/*
* transformed coordinate system objects for X
*/
-# include <X11/Xlib.h>
-# include "transform.h"
+#include <X11/Xlib.h>
+#include "transform.h"
+#include <stdlib.h>
-static XPoint *
-TranslatePoints (points, n_points, t, mode)
-TPoint *points;
-int n_points;
-Transform *t;
-int mode;
+static XPoint *
+TranslatePoints(TPoint *points, int n_points,
+ Transform *t, int mode)
{
XPoint *xpoints;
int i;
@@ -60,6 +59,7 @@ int mode;
return xpoints;
}
+void
TFillPolygon (dpy, d, gc, t, points, n_points, shape, mode)
register Display *dpy;
Drawable d;
@@ -80,6 +80,7 @@ int mode;
}
}
+void
TDrawArc (dpy, d, gc, t, x, y, width, height, angle1, angle2)
register Display *dpy;
Drawable d;
@@ -105,6 +106,7 @@ TDrawArc (dpy, d, gc, t, x, y, width, height, angle1, angle2)
XDrawArc (dpy, d, gc, xx, xy, xw, xh, angle1, angle2);
}
+void
TFillArc (dpy, d, gc, t, x, y, width, height, angle1, angle2)
register Display *dpy;
Drawable d;
@@ -130,6 +132,7 @@ TFillArc (dpy, d, gc, t, x, y, width, height, angle1, angle2)
XFillArc (dpy, d, gc, xx, xy, xw, xh, angle1, angle2);
}
+void
SetTransform (t, xx1, xx2, xy1, xy2, tx1, tx2, ty1, ty2)
Transform *t;
int xx1, xx2, xy1, xy2;