summaryrefslogtreecommitdiff
path: root/source/xps/xps-glyphs.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2016-04-05 12:31:26 +0200
committerTor Andersson <tor.andersson@artifex.com>2016-04-05 13:40:04 +0200
commita45b3a21c67476c703ddd5d5b4755364671c26c1 (patch)
treea755086e3fa8dd4a11d044f7765875b6f6ad0e19 /source/xps/xps-glyphs.c
parent353a05d9e8e8023e1c3c24816f712bdcb05502ca (diff)
downloadmupdf-a45b3a21c67476c703ddd5d5b4755364671c26c1.tar.xz
Clean up bidi enum names.
And use the same enum for both the internal bidi code and the layout code.
Diffstat (limited to 'source/xps/xps-glyphs.c')
-rw-r--r--source/xps/xps-glyphs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/xps/xps-glyphs.c b/source/xps/xps-glyphs.c
index 3d0ebfd0..9110c169 100644
--- a/source/xps/xps-glyphs.c
+++ b/source/xps/xps-glyphs.c
@@ -451,7 +451,7 @@ xps_parse_glyphs_imp(fz_context *ctx, xps_document *doc, const fz_matrix *ctm,
tm.f = y - v_offset;
}
- dir = bidi_level & 1 ? FZ_DIR_R2L : FZ_DIR_L2R;
+ dir = bidi_level & 1 ? FZ_BIDI_RTL : FZ_BIDI_LTR;
fz_show_glyph(ctx, text, font, &tm, glyph_index, char_code, is_sideways, bidi_level, dir, FZ_LANG_UNSET);
x += advance * 0.01f * size;