Skip to content

Commit

Permalink
Merge pull request #13 from vitch/master
Browse files Browse the repository at this point in the history
Scaling the video as it is drawn to the canvas.
  • Loading branch information
Ciro S. Costa committed Aug 21, 2014
2 parents 02dfb19 + 39e7e0a commit e39df7f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build/qcode-decoder.js
Original file line number Diff line number Diff line change
Expand Up @@ -3873,7 +3873,7 @@ QRCodeDecoder.prototype._captureToCanvas = function () {
gCtx.clearRect(0, 0, this.canvasElem.width, this.canvasElem.height);

try{
gCtx.drawImage(this.videoElem,0,0);
gCtx.drawImage(this.videoElem,0,0,this.canvasElem.width,this.canvasElem.height);
try{
qrcode.decode();
}
Expand Down
Loading

0 comments on commit e39df7f

Please sign in to comment.