aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHolden Rohrer <holden.rohrer@gmail.com>2019-12-18 16:44:11 -0500
committerHolden Rohrer <holden.rohrer@gmail.com>2019-12-18 16:44:11 -0500
commitccde5508af1f68499ccf09f76edcef2f13e3adbd (patch)
tree5e854fdad570fb4f817e1b8b1d6240b15e5e1035
parent057ccc9d8a84b9bc8673c1d387a422e3cc74190d (diff)
fixed space.js to handle pixel-based addressing
-rw-r--r--space.js2
1 files changed, 1 insertions, 1 deletions
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;
}