mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-16 01:35:07 +00:00
GUI: prevent one possible bug when moving cursor
This commit is contained in:
parent
964039c8db
commit
92c1add075
1 changed files with 1 additions and 0 deletions
|
@ -263,6 +263,7 @@ void FurnaceGUI::moveCursorBottom(bool select) {
|
||||||
if (cursor.y==e->song.patLen-1) {
|
if (cursor.y==e->song.patLen-1) {
|
||||||
DETERMINE_LAST;
|
DETERMINE_LAST;
|
||||||
cursor.xCoarse=lastChannel-1;
|
cursor.xCoarse=lastChannel-1;
|
||||||
|
if (cursor.xCoarse<0) cursor.xCoarse=0;
|
||||||
cursor.xFine=2+e->song.pat[cursor.xCoarse].effectRows*2;
|
cursor.xFine=2+e->song.pat[cursor.xCoarse].effectRows*2;
|
||||||
demandScrollX=true;
|
demandScrollX=true;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue