commit 60a3dd36bb82179a0768a4ebeb4f7c632cdd59bf
parent fbb9816f4f3ae74ef5db5f11127123f7efbecbd0
Author: Olav Sørensen <olav.sorensen@live.no>
Date: Tue, 18 Aug 2020 09:35:58 +0200
Fix wraparound-issues when using Tab in the pattern editor
Fixes issue #9
Diffstat:
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/src/ft2_header.h b/src/ft2_header.h
@@ -12,7 +12,7 @@
#endif
#include "ft2_replayer.h"
-#define PROG_VER_STR "1.28"
+#define PROG_VER_STR "1.29"
// do NOT change these! It will only mess things up...
diff --git a/src/ft2_pattern_ed.c b/src/ft2_pattern_ed.c
@@ -375,7 +375,10 @@ void cursorChannelLeft(void)
{
cursor.ch = (uint8_t)(song.antChn - 1);
if (ui.pattChanScrollShown)
+ {
+ scrollBars[SB_CHAN_SCROLL].oldPos = 0xFFFFFFFF; // kludge
setScrollBarPos(SB_CHAN_SCROLL, song.antChn, true);
+ }
}
else
{
@@ -396,7 +399,10 @@ void cursorChannelRight(void)
{
cursor.ch = 0;
if (ui.pattChanScrollShown)
+ {
+ scrollBars[SB_CHAN_SCROLL].oldPos = 0xFFFFFFFF; // kludge
setScrollBarPos(SB_CHAN_SCROLL, 0, true);
+ }
}
else
{