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
12#endif12#endif
13#include "ft2_replayer.h"13#include "ft2_replayer.h"
14 14
15#define PROG_VER_STR "1.28"15#define PROG_VER_STR "1.29"
16 16
17// do NOT change these! It will only mess things up...17// do NOT change these! It will only mess things up...
18 18
src/ft2_pattern_ed.c+6−0
@@ -375,7 +375,10 @@ void cursorChannelLeft(void) · 374 unmodified lines
375 {375 {
376 cursor.ch = (uint8_t)(song.antChn - 1);376 cursor.ch = (uint8_t)(song.antChn - 1);
377 if (ui.pattChanScrollShown)377 if (ui.pattChanScrollShown)
378 {
379 scrollBars[SB_CHAN_SCROLL].oldPos = 0xFFFFFFFF; // kludge
378 setScrollBarPos(SB_CHAN_SCROLL, song.antChn, true);380 setScrollBarPos(SB_CHAN_SCROLL, song.antChn, true);
381 }
379 }382 }
380 else383 else
381 {384 {
@@ -396,7 +399,10 @@ void cursorChannelRight(void) · 14 unmodified lines
396 {399 {
397 cursor.ch = 0;400 cursor.ch = 0;
398 if (ui.pattChanScrollShown)401 if (ui.pattChanScrollShown)
402 {
403 scrollBars[SB_CHAN_SCROLL].oldPos = 0xFFFFFFFF; // kludge
399 setScrollBarPos(SB_CHAN_SCROLL, 0, true);404 setScrollBarPos(SB_CHAN_SCROLL, 0, true);
405 }
400 }406 }
401 else407 else
402 {408 {

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