summaryrefslogtreecommitdiff
path: root/source/tools
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2016-04-25 15:43:54 +0200
committerTor Andersson <tor.andersson@artifex.com>2016-04-26 15:12:57 +0200
commitf730023f7cc5417dfe8fb5b957a0990832c81d31 (patch)
treef050b15ed5d7d13d1c72fc688c6e40446fd879c7 /source/tools
parentc304a128c51939dd507b2cb87c89daf56a659388 (diff)
downloadmupdf-f730023f7cc5417dfe8fb5b957a0990832c81d31.tar.xz
murun: Add wmode and bidi-level arguments to text walker callback.
Diffstat (limited to 'source/tools')
-rw-r--r--source/tools/murun.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/tools/murun.c b/source/tools/murun.c
index 8825d5af..4992514a 100644
--- a/source/tools/murun.c
+++ b/source/tools/murun.c
@@ -1951,7 +1951,9 @@ static void ffi_Text_walk(js_State *J)
ffi_pushmatrix(J, trm);
js_pushnumber(J, span->items[i].gid);
js_pushnumber(J, span->items[i].ucs);
- js_call(J, 4);
+ js_pushnumber(J, span->wmode);
+ js_pushnumber(J, span->bidi_level);
+ js_call(J, 6);
js_pop(J, 1);
}
js_pop(J, 1); /* pop font object */