fix qrcode can't be recognized

This commit is contained in:
cssivision 2016-05-26 10:55:35 +08:00
parent f0c73ac40c
commit c0c8b16d84

View File

@ -20,6 +20,8 @@ function renderCanvas(canvas) {
var cells = this.cells;
var cellWidth = this.size / cells.length;
var cellHeight = this.size / cells.length;
var nRoundedWidth = Math.round(cellWidth);
var nRoundedHeight = Math.round(cellHeight);
cells.forEach(function(row, rowIndex) {
row.forEach(function(column, columnIndex) {
var nLeft = columnIndex * cellWidth;