Fix palette indexer bytes

This commit is contained in:
2026-02-16 12:01:06 -06:00
parent 2b1a3323a8
commit d7a0bb4509

View File

@@ -661,7 +661,7 @@
const header = new Uint8Array([0x44, 0x50, 0x54, 0x01]); // 'DPT' + version 1
// Dimensions
const widthBytes = new Uint8Array([ imageWidth ]);
const widthBytes = new Uint32Array([ imageWidth ]);
const heightBytes = new Uint32Array([ imageHeight ]);
// add indexed image data (imageWidth * imageHeight bytes)