History

Fix wraparound-issues when using Tab in the pattern editor

Fixes issue #9

Olav Sørensen committed 6 years ago

Commit 60a3dd31 parent fbb98162 files · +7 −1Browse files

Showing the changes to src (2 of 2 files). Show all

Unified · Split

2 files
  1. src/ft2_header.h +1 −1
  2. src/ft2_pattern_ed.c +6 −0
src/ft2_header.h+1−1
@@ -12,7 +12,7 @@ · 11 unmodified lines
1212 #endif
1313 #include "ft2_replayer.h"
1414
15−#define PROG_VER_STR "1.28"
15+#define PROG_VER_STR "1.29"
1616
1717 // do NOT change these! It will only mess things up...
1818
src/ft2_pattern_ed.c+6−0
@@ -375,7 +375,10 @@ void cursorChannelLeft(void) · 374 unmodified lines
375375 {
376376 cursor.ch = (uint8_t)(song.antChn - 1);
377377 if (ui.pattChanScrollShown)
378+ {
379+ scrollBars[SB_CHAN_SCROLL].oldPos = 0xFFFFFFFF; // kludge
378380 setScrollBarPos(SB_CHAN_SCROLL, song.antChn, true);
381+ }
379382 }
380383 else
381384 {
@@ -396,7 +399,10 @@ void cursorChannelRight(void) · 14 unmodified lines
396399 {
397400 cursor.ch = 0;
398401 if (ui.pattChanScrollShown)
402+ {
403+ scrollBars[SB_CHAN_SCROLL].oldPos = 0xFFFFFFFF; // kludge
399404 setScrollBarPos(SB_CHAN_SCROLL, 0, true);
405+ }
400406 }
401407 else
402408 {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t