Skip to content

Commit

Permalink
mobile live fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jywarren committed Dec 10, 2012
1 parent 0f23484 commit 366ae0d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion webserver/public/javascripts/capture.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,8 @@ $W = {
if ($W.mobile) {
// mobile will never need to flip, can't be installed "upside down"
//$W.ctx.save()
$W.ctx.translate(320,0)
$W.ctx.scale($('#canvas').width()/$('video').height(),1)
$W.ctx.translate($('video').height()/2,0)
$W.ctx.rotate(Math.PI/2)
$W.ctx.drawImage(video, -startrow/4, -$W.height/2);
//$W.ctx.drawImage(video, 0,0)
Expand Down

0 comments on commit 366ae0d

Please sign in to comment.