From: Michael Göhler Date: Wed, 17 Sep 2014 22:36:28 +0000 (+0200) Subject: no fading if next/prev slide is not availabe X-Git-Url: https://git.danieliu.xyz/?a=commitdiff_plain;h=8f4833ac9c182f742e4d7f11895f4c8684e9c23c;p=smdp.git no fading if next/prev slide is not availabe --- diff --git a/viewer.c b/viewer.c index 49b61eb..ba76f2f 100644 --- a/viewer.c +++ b/viewer.c @@ -259,6 +259,8 @@ int ncurses_display(deck_t *deck, int notrans, int nofade, int invert) { if(slide->prev) { slide = slide->prev; sc--; + } else { + fade = 0; } break; @@ -272,6 +274,8 @@ int ncurses_display(deck_t *deck, int notrans, int nofade, int invert) { if(slide->next) { slide = slide->next; sc++; + } else { + fade = 0; } break;