From: Michael Göhler Date: Fri, 20 Nov 2015 23:51:44 +0000 (+0100) Subject: disabled fade on stop, closes #94 X-Git-Url: https://git.danieliu.xyz/?a=commitdiff_plain;h=6363ec143cd316f05d85697c7edbe50a1592b750;p=smdp.git disabled fade on stop, closes #94 always stop on first bullet when switching slides backwards --- diff --git a/include/main.h b/include/main.h index e79b4a1..8f3f706 100644 --- a/include/main.h +++ b/include/main.h @@ -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 ) diff --git a/src/viewer.c b/src/viewer.c index d1588d0..0e8204f 100644 --- a/src/viewer.c +++ b/src/viewer.c @@ -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