From f0eabc17d6ec113c6e765ac3272f19623a6cbd4e Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Wed, 6 Jul 2016 13:15:49 +0200 Subject: Start slimming pdf_page. We want to turn pdf_page into a thin wrapper around a pdf_obj, so that any updates to the underlying PDF objects will be reflected without having to reload the pdf_page. --- platform/x11/pdfapp.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'platform') diff --git a/platform/x11/pdfapp.c b/platform/x11/pdfapp.c index 532c217b..c3231995 100644 --- a/platform/x11/pdfapp.c +++ b/platform/x11/pdfapp.c @@ -907,7 +907,6 @@ static void pdfapp_showpage(pdfapp_t *app, int loadpage, int drawpage, int repai if (transition) { - fz_transition *new_trans; app->new_image = app->image; app->image = NULL; if (app->grayscale) @@ -916,9 +915,7 @@ static void pdfapp_showpage(pdfapp_t *app, int loadpage, int drawpage, int repai colorspace = app->colorspace; app->image = fz_new_pixmap_with_bbox(app->ctx, colorspace, &ibounds, app->image->alpha); app->duration = 0; - new_trans = fz_page_presentation(app->ctx, app->page, &app->duration); - if (new_trans) - app->transition = *new_trans; + fz_page_presentation(app->ctx, app->page, &app->transition, &app->duration); if (app->duration == 0) app->duration = 5; app->in_transit = fz_generate_transition(app->ctx, app->image, app->old_image, app->new_image, 0, &app->transition); -- cgit v1.2.3