diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2014-05-27 14:16:09 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2014-05-27 14:26:34 +0200 |
commit | a65d4da6b8073a67c69f3c716152a7072770db40 (patch) | |
tree | da30ae1a4584bb8a47b14b523b4770e062102e4e /platform/x11 | |
parent | 955b7137fa4982b596ce0acf2fb7b9a497376320 (diff) | |
download | mupdf-a65d4da6b8073a67c69f3c716152a7072770db40.tar.xz |
Set a faster default transition.
Diffstat (limited to 'platform/x11')
-rw-r--r-- | platform/x11/pdfapp.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/platform/x11/pdfapp.c b/platform/x11/pdfapp.c index 58b160e6..de5ce743 100644 --- a/platform/x11/pdfapp.c +++ b/platform/x11/pdfapp.c @@ -115,6 +115,8 @@ void pdfapp_init(fz_context *ctx, pdfapp_t *app) app->scrh = 480; app->resolution = 72; app->ctx = ctx; + app->transition.duration = 0.25; + app->transition.type = FZ_TRANSITION_FADE; #ifdef _WIN32 app->colorspace = fz_device_bgr(ctx); #else @@ -834,15 +836,6 @@ static void pdfapp_showpage(pdfapp_t *app, int loadpage, int drawpage, int repai new_trans = fz_page_presentation(app->doc, app->page, &app->duration); if (new_trans) app->transition = *new_trans; - else - { - /* If no transition specified, use a default one */ - memset(&app->transition, 0, sizeof(*new_trans)); - app->transition.duration = 1.0; - app->transition.type = FZ_TRANSITION_WIPE; - app->transition.vertical = 0; - app->transition.direction = 0; - } if (app->duration == 0) app->duration = 5; app->in_transit = fz_generate_transition(app->image, app->old_image, app->new_image, 0, &app->transition); |