From 31fbe11a038dad645bb7a0fb5da426455f02cef8 Mon Sep 17 00:00:00 2001 From: malc Date: Sat, 10 Jul 2010 05:28:46 +0400 Subject: [PATCH] Work with latest mupdf --- link.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/link.c b/link.c index 99d4715..a25914c 100644 --- a/link.c +++ b/link.c @@ -62,6 +62,7 @@ static void __declspec (noreturn) sockerr (int exitcode, const char *fmt, ...) #include #include #include +#include #ifndef _WIN32 #include #include @@ -528,14 +529,14 @@ static void layout (void) box.x1 = MAX (p->box.x0, p->box.x1); box.y1 = MAX (p->box.y0, p->box.y1); - ctm = fz_identity (); + ctm = fz_identity; ctm = fz_concat (ctm, fz_translate (0, -box.y1)); ctm = fz_concat (ctm, fz_rotate (p->rotate)); box2 = fz_transformrect (ctm, box); w = box2.x1 - box2.x0; zoom = (state.w / w); - ctm = fz_identity (); + ctm = fz_identity; ctm = fz_concat (ctm, fz_translate (0, -box.y1)); ctm = fz_concat (ctm, fz_scale (zoom, -zoom)); memcpy (&p->ctm1, &ctm, sizeof (ctm)); -- 2.11.4.GIT