summaryrefslogtreecommitdiff
path: root/src/Type1/t1snap.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/Type1/t1snap.c')
-rw-r--r--src/Type1/t1snap.c17
1 files changed, 10 insertions, 7 deletions
diff --git a/src/Type1/t1snap.c b/src/Type1/t1snap.c
index fd26e36..90c396b 100644
--- a/src/Type1/t1snap.c
+++ b/src/Type1/t1snap.c
@@ -27,10 +27,13 @@
* OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
* SOFTWARE.
*/
+/* $XFree86: xc/lib/font/Type1/t1snap.c,v 1.4 2001/01/17 19:43:24 dawes Exp $ */
+
#include "objects.h"
#include "spaces.h"
#include "paths.h"
+#include "pictures.h"
/*
:h2.Handle Functions
@@ -40,15 +43,15 @@
This is a user operator. Its new name is QueryHandle.
*/
-struct segment *t1_Phantom(obj)
- register struct xobject *obj; /* object to take the Phantom of */
+struct segment *
+t1_Phantom(struct segment *p) /* object to take the Phantom of */
{
struct fractpoint pt; /* handle size will built here */
- if (obj == NULL)
+ if (p == NULL)
pt.x = pt.y = 0;
else
- PathDelta(obj, &pt);
+ PathDelta(p, &pt);
return(PathSegment(MOVETYPE, pt.x, pt.y));
}
@@ -59,8 +62,8 @@ struct segment *t1_Phantom(obj)
This is a user operator.
*/
-struct xobject *t1_Snap(p)
- register struct segment *p; /* path to snap */
+struct segment *
+t1_Snap(struct segment *p) /* path to snap */
{
struct fractpoint pt; /* for finding length of path */
@@ -75,5 +78,5 @@ struct xobject *t1_Snap(p)
}
else
p = JoinSegment(p, MOVETYPE, -pt.x, -pt.y, NULL);
- return((struct xobject *)p);
+ return(p);
}