From ccde5508af1f68499ccf09f76edcef2f13e3adbd Mon Sep 17 00:00:00 2001 From: Holden Rohrer Date: Wed, 18 Dec 2019 16:44:11 -0500 Subject: fixed space.js to handle pixel-based addressing --- space.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/space.js b/space.js index 912768b..9ffcd18 100644 --- a/space.js +++ b/space.js @@ -54,7 +54,7 @@ function Space(){ // CLASS let writes = []; for (let line = 0; line < this.data.length; line++) for (let chr = 0; chr< this.data[line].length; chr++){ if (this.data[line][chr] == '') continue; - writes.push([[Math.floor( (charoffset[0]+line)/8 ),Math.floor( (charoffset[1]+chr)/16 )],[ (charoffset[0]+line) % 8, (charoffset[1]+chr) % 16 ],this.data[line][chr]]); + writes.push([[charoffset[0]+line,charoffset[1]+chr],this.data[line][chr]]); } return writes; } -- cgit