no fading if next/prev slide is not availabe
authorMichael Göhler <somebody.here@gmx.de>
Wed, 17 Sep 2014 22:36:28 +0000 (00:36 +0200)
committerMichael Göhler <somebody.here@gmx.de>
Wed, 17 Sep 2014 22:36:28 +0000 (00:36 +0200)
viewer.c

index 49b61eb..ba76f2f 100644 (file)
--- 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;