GUI: fix oversight in sample invert
This commit is contained in:
parent
7f75b642da
commit
2a0d76563d
|
@ -1285,7 +1285,7 @@ void FurnaceGUI::doAction(int what) {
|
|||
} else if (sample->depth==DIV_SAMPLE_DEPTH_8BIT) {
|
||||
for (unsigned int i=start; i<end; i++) {
|
||||
sample->data8[i]=-sample->data8[i];
|
||||
if (sample->data16[i]==-128) sample->data16[i]=127;
|
||||
if (sample->data8[i]==-128) sample->data8[i]=127;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue