mirror of
https://github.com/tildearrow/furnace.git
synced 2024-12-29 02:51:24 +00:00
GUI: slightly tweak volume insertion method
untested as i am on bed
This commit is contained in:
parent
dc16d52a7c
commit
8354f1a610
1 changed files with 6 additions and 2 deletions
|
@ -4274,8 +4274,12 @@ void FurnaceGUI::keyDown(SDL_Event& ev) {
|
|||
curNibble=!curNibble;
|
||||
if (!curNibble) editAdvance();
|
||||
}
|
||||
} else if (cursor.xFine==2) { // volume
|
||||
pat->data[cursor.y][cursor.xFine+1]&=e->getMaxVolumeChan(cursor.xCoarse);
|
||||
} else if (cursor.xFine==2) {
|
||||
if (curNibble) {
|
||||
if (pat->data[cursor.y][cursor.xFine+1]>e->getMaxVolumeChan(cursor.xCoarse)) pat->data[cursor.y][cursor.xFine+1]=e->getMaxVolumeChan(cursor.xCoarse);
|
||||
} else {
|
||||
pat->data[cursor.y][cursor.xFine+1]&=15;
|
||||
}
|
||||
makeUndo(GUI_ACTION_PATTERN_EDIT);
|
||||
if (e->getMaxVolumeChan(cursor.xCoarse)<16) {
|
||||
curNibble=false;
|
||||
|
|
Loading…
Reference in a new issue