Skip to content
Snippets Groups Projects
Commit 45f9d93f authored by Alexander Rose's avatar Alexander Rose
Browse files

fixed clearOverpaint

parent 44a566fd
No related branches found
No related tags found
No related merge requests found
...@@ -24,7 +24,7 @@ export function applyOverpaintColor(array: Uint8Array, start: number, end: numbe ...@@ -24,7 +24,7 @@ export function applyOverpaintColor(array: Uint8Array, start: number, end: numbe
} }
export function clearOverpaint(array: Uint8Array, start: number, end: number) { export function clearOverpaint(array: Uint8Array, start: number, end: number) {
array.fill(0, start, end) array.fill(0, start * 4, end * 4)
} }
export function createOverpaint(count: number, overpaintData?: OverpaintData): OverpaintData { export function createOverpaint(count: number, overpaintData?: OverpaintData): OverpaintData {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment