mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-15 17:25:06 +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;
|
curNibble=!curNibble;
|
||||||
if (!curNibble) editAdvance();
|
if (!curNibble) editAdvance();
|
||||||
}
|
}
|
||||||
} else if (cursor.xFine==2) { // volume
|
} else if (cursor.xFine==2) {
|
||||||
pat->data[cursor.y][cursor.xFine+1]&=e->getMaxVolumeChan(cursor.xCoarse);
|
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);
|
makeUndo(GUI_ACTION_PATTERN_EDIT);
|
||||||
if (e->getMaxVolumeChan(cursor.xCoarse)<16) {
|
if (e->getMaxVolumeChan(cursor.xCoarse)<16) {
|
||||||
curNibble=false;
|
curNibble=false;
|
||||||
|
|
Loading…
Reference in a new issue