summaryrefslogtreecommitdiff
path: root/source/html/html-layout.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/html/html-layout.c')
-rw-r--r--source/html/html-layout.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/html/html-layout.c b/source/html/html-layout.c
index 0e8ac27e..091ce052 100644
--- a/source/html/html-layout.c
+++ b/source/html/html-layout.c
@@ -1617,9 +1617,9 @@ static void draw_block_box(fz_context *ctx, fz_html *box, float page_top, float
}
void
-fz_draw_html(fz_context *ctx, fz_html *box, float page_top, float page_bot, fz_device *dev, const fz_matrix *inctm)
+fz_draw_html(fz_context *ctx, fz_device *dev, const fz_matrix *ctm, fz_html *box, float page_top, float page_bot)
{
- fz_matrix ctm = *inctm;
+ fz_matrix local_ctm = *ctm;
hb_buffer_t *hb_buf = NULL;
int unlocked = 0;
@@ -1633,8 +1633,8 @@ fz_draw_html(fz_context *ctx, fz_html *box, float page_top, float page_bot, fz_d
hb_buf = hb_buffer_create();
hb_unlock(ctx);
unlocked = 1;
- fz_pre_translate(&ctm, 0, -page_top);
- draw_block_box(ctx, box, page_top, page_bot, dev, &ctm, hb_buf);
+ fz_pre_translate(&local_ctm, 0, -page_top);
+ draw_block_box(ctx, box, page_top, page_bot, dev, &local_ctm, hb_buf);
}
fz_always(ctx)
{