bugfix: fixed string concatenation method in DummyScreenAdapter.get_text_row()

previous method created undefined strings, switched to working method
This commit is contained in:
Christian Schnell 2025-09-08 22:36:43 +02:00 committed by Fabian
parent 18ff2d85a1
commit 4251ac1a9e

View file

@ -121,12 +121,7 @@ export function DummyScreenAdapter(options)
{
const begin = y * text_mode_width;
const end = begin + text_mode_width;
let row = "";
for(let i = begin; i < end; i++)
{
row += charmap[text_mode_data[i]];
}
return row;
return Array.from(text_mode_data.subarray(begin, end), chr => charmap[chr]).join("");
};
this.set_size_text(80, 25);