aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--generic/Draw.c4
-rw-r--r--generic/Text.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/generic/Draw.c b/generic/Draw.c
index ac59317..577b115 100644
--- a/generic/Draw.c
+++ b/generic/Draw.c
@@ -1554,8 +1554,8 @@ ZnComputeRadialGradient(ZnWInfo *wi,
}
/*
- * Create a transform to map a unit circle to another one that fill
- * the item when located at the focal point.
+ * Create a transform to map a unit circle to another one that
+ * could fill the item when centered at the focal point.
*/
dist = sqrt(dist); /* Max radius plus a fuzz factor */
ZnTransfoSetIdentity(&t1);
diff --git a/generic/Text.c b/generic/Text.c
index b8a3bcb..8f1e138 100644
--- a/generic/Text.c
+++ b/generic/Text.c
@@ -1020,7 +1020,7 @@ Render(ZnItem item)
ZnFree(buf);
}
#else
- ZnRenderString(text->tfi, buf, written);
+ ZnRenderString(text->tfi, lines_ptr->start, lines_ptr->num_bytes);
#endif
glPopMatrix();