Auto space QR render and more fixes for viewdata frames

This commit is contained in:
Deon George
2020-08-17 20:18:51 +10:00
parent 4696594190
commit f05c11d5a2
2 changed files with 11 additions and 13 deletions

View File

@@ -411,11 +411,10 @@ function VIEWDATAFrame() {
return output;
};
this.qrcode = function(qr,subframe) {
var offset = 18;
this.qrcode = function(qr) {
// Render the body
var qrcode = VIEWDATA_HOME+VIEWDATA_DOWN.repeat(5);
//var line = '';
var offset = VIEWDATA_FRAME_WIDTH-Math.ceil(qr.size/2)-1;
for (var x = -1; x < qr.size; x=x+3) {
var line = VIEWDATA_RIGHT.repeat(offset ? offset-1 : 0)+VIEWDATA_MOSIAC_WHITE;