mirror of
https://github.com/copy/v86.git
synced 2025-12-31 04:23:15 +00:00
bugfix: fixed string concatenation method in DummyScreenAdapter.get_text_row()
previous method created undefined strings, switched to working method
This commit is contained in:
parent
18ff2d85a1
commit
4251ac1a9e
1 changed files with 1 additions and 6 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue