Skip to content

Commit

Permalink
rollback spread operator usage
Browse files Browse the repository at this point in the history
  • Loading branch information
vip-delete authored and copy committed Jun 24, 2024
1 parent 7c73455 commit 49f3d0c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions src/browser/dummy_screen.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ function DummyScreenAdapter(bus)
bus.register("screen-put-char", function(data)
{
//console.log(data);
this.put_char(...data);
this.put_char(data[0], data[1], data[2], data[3], data[4], data[5]);
}, this);

bus.register("screen-text-scroll", function(rows)
Expand All @@ -68,20 +68,20 @@ function DummyScreenAdapter(bus)

bus.register("screen-update-cursor", function(data)
{
this.update_cursor(...data);
this.update_cursor(data[0], data[1]);
}, this);
bus.register("screen-update-cursor-scanline", function(data)
{
this.update_cursor_scanline(...data);
this.update_cursor_scanline(data[0], data[1]);
}, this);

bus.register("screen-set-size-text", function(data)
{
this.set_size_text(...data);
this.set_size_text(data[0], data[1]);
}, this);
bus.register("screen-set-size-graphical", function(data)
{
this.set_size_graphical(...data);
this.set_size_graphical(data[0], data[1]);
}, this);

this.put_char = function(row, col, chr, blinking, bg_color, fg_color)
Expand Down
10 changes: 5 additions & 5 deletions src/browser/screen.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,16 +146,16 @@ function ScreenAdapter(screen_container, bus)
bus.register("screen-put-char", function(data)
{
//console.log(data);
this.put_char(...data);
this.put_char(data[0], data[1], data[2], data[3], data[4], data[5]);
}, this);

bus.register("screen-update-cursor", function(data)
{
this.update_cursor(...data);
this.update_cursor(data[0], data[1]);
}, this);
bus.register("screen-update-cursor-scanline", function(data)
{
this.update_cursor_scanline(...data);
this.update_cursor_scanline(data[0], data[1]);
}, this);

bus.register("screen-clear", function()
Expand All @@ -165,11 +165,11 @@ function ScreenAdapter(screen_container, bus)

bus.register("screen-set-size-text", function(data)
{
this.set_size_text(...data);
this.set_size_text(data[0], data[1]);
}, this);
bus.register("screen-set-size-graphical", function(data)
{
this.set_size_graphical(...data);
this.set_size_graphical(data[0], data[1], data[2], data[3]);
}, this);


Expand Down

0 comments on commit 49f3d0c

Please sign in to comment.