GUI: fix oversight in sample invert

This commit is contained in:
tildearrow 2023-08-10 00:30:35 -05:00
parent 7f75b642da
commit 2a0d76563d

View file

@ -1285,7 +1285,7 @@ void FurnaceGUI::doAction(int what) {
} else if (sample->depth==DIV_SAMPLE_DEPTH_8BIT) { } else if (sample->depth==DIV_SAMPLE_DEPTH_8BIT) {
for (unsigned int i=start; i<end; i++) { for (unsigned int i=start; i<end; i++) {
sample->data8[i]=-sample->data8[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;
} }
} }