ref: 60a3dd36bb82179a0768a4ebeb4f7c632cdd59bf
parent: fbb9816f4f3ae74ef5db5f11127123f7efbecbd0
author: Olav Sørensen <[email protected]>
date: Tue Aug 18 05:36:25 EDT 2020
Fix wraparound-issues when using Tab in the pattern editor Fixes issue #9
--- 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...
--- a/src/ft2_pattern_ed.c
+++ b/src/ft2_pattern_ed.c
@@ -375,7 +375,10 @@
{
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 @@
{
cursor.ch = 0;
if (ui.pattChanScrollShown)
+ {
+ scrollBars[SB_CHAN_SCROLL].oldPos = 0xFFFFFFFF; // kludge
setScrollBarPos(SB_CHAN_SCROLL, 0, true);
+ }
}
else
{