disabled fade on stop, closes #94
authorMichael Göhler <somebody.here@gmx.de>
Fri, 20 Nov 2015 23:51:44 +0000 (00:51 +0100)
committerMichael Göhler <somebody.here@gmx.de>
Fri, 20 Nov 2015 23:53:04 +0000 (00:53 +0100)
always stop on first bullet when switching slides backwards

include/main.h
src/viewer.c

index e79b4a1..8f3f706 100644 (file)
@@ -25,6 +25,6 @@
 
 #define MDP_VER_MAJOR 1
 #define MDP_VER_MINOR 0
-#define MDP_VER_REVISION 2
+#define MDP_VER_REVISION 3
 
 #endif // !defined( MAIN_H )
index d1588d0..0e8204f 100644 (file)
@@ -371,11 +371,15 @@ int ncurses_display(deck_t *deck, int notrans, int nofade, int invert, int reloa
                     // show current slide again
                     // but stop one stop bit earlier
                     slide->stop--;
+                    fade = false;
                 } else {
                     if(slide->prev) {
                         // show previous slide
                         slide = slide->prev;
                         sc--;
+                        //stop on first bullet point always
+                        if(slide->stop > 0)
+                            slide->stop = 0;
                     } else {
                         // do nothing
                         fade = false;
@@ -395,6 +399,7 @@ int ncurses_display(deck_t *deck, int notrans, int nofade, int invert, int reloa
                     // show current slide again
                     // but stop one stop bit later (or at end of slide)
                     slide->stop++;
+                    fade = false;
                 } else {
                     if(slide->next) {
                         // show next slide