mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
Cava: fix overflowing array
This commit is contained in:
+2
-2
@@ -67,9 +67,9 @@ Scope {
|
||||
process.index = 0;
|
||||
}
|
||||
for (let i = 0; i < data.length; i += 1) {
|
||||
newValues[i + process.index] = Math.min(data.charCodeAt(i), 128) / 128;
|
||||
newValues[process.index] = Math.min(data.charCodeAt(i), 128) / 128;
|
||||
process.index = (process.index+1) % count;
|
||||
}
|
||||
process.index += data.length;
|
||||
values = newValues;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user