From 06df7cc2653f108b538b0f8b09fc3e41db6d8cea Mon Sep 17 00:00:00 2001 From: Fabian Date: Fri, 25 Feb 2022 12:53:42 +0100 Subject: [PATCH] Fix 2048 MB memory size --- src/vga.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vga.js b/src/vga.js index 3d6568fe..3d557247 100644 --- a/src/vga.js +++ b/src/vga.js @@ -1091,7 +1091,7 @@ VGAScreen.prototype.set_size_graphical = function(width, height, bpp, virtual_wi if (typeof ImageData !== "undefined") { const size = width * height; - const offset = this.cpu.svga_allocate_dest_buffer(size); + const offset = this.cpu.svga_allocate_dest_buffer(size) >>> 0; this.dest_buffet_offset = offset; this.image_data = new ImageData(new Uint8ClampedArray(this.cpu.wasm_memory.buffer, offset, 4 * size), width, height);