summaryrefslogtreecommitdiff
path: root/source/tools/murun.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2018-02-22 11:26:19 +0100
committerTor Andersson <tor.andersson@artifex.com>2018-02-27 14:08:27 +0100
commit4dfced061fe7bc64335d3ccd31435091de0e0fe1 (patch)
tree6f33236c732363e4cc65e8389fb7397907317aa6 /source/tools/murun.c
parentf4441c3c1a9a17275df5c75099633c4bf63a16d6 (diff)
downloadmupdf-4dfced061fe7bc64335d3ccd31435091de0e0fe1.tar.xz
Add annotation Vertices creation functions.
Diffstat (limited to 'source/tools/murun.c')
-rw-r--r--source/tools/murun.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/tools/murun.c b/source/tools/murun.c
index 4f535670..fd6c2c0d 100644
--- a/source/tools/murun.c
+++ b/source/tools/murun.c
@@ -4247,7 +4247,7 @@ static void ffi_PDFAnnotation_getInkList(js_State *J)
fz_context *ctx = js_getcontext(J);
pdf_annot *annot = js_touserdata(J, 0, "pdf_annot");
int i, k, m = 0, n = 0;
- float v[2] = { 0 };
+ fz_point pt;
js_newarray(J);
@@ -4265,12 +4265,12 @@ static void ffi_PDFAnnotation_getInkList(js_State *J)
js_newarray(J);
for (k = 0; k < m; ++k) {
fz_try(ctx)
- pdf_annot_ink_list_stroke_vertex(ctx, annot, i, k, v);
+ pt = pdf_annot_ink_list_stroke_vertex(ctx, annot, i, k);
fz_catch(ctx)
rethrow(J);
- js_pushnumber(J, v[0]);
+ js_pushnumber(J, pt.x);
js_setindex(J, -2, k * 2 + 0);
- js_pushnumber(J, v[1]);
+ js_pushnumber(J, pt.y);
js_setindex(J, -2, k * 2 + 1);
}
js_setindex(J, -2, i);