Skip to content

Commit

Permalink
fix(app/index): expand the viewport
Browse files Browse the repository at this point in the history
When tested on larger screen, the game stays at 1x.
  • Loading branch information
dtinth committed Feb 13, 2015
1 parent c28d333 commit 85ad540
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,7 @@ function showCanvas(view) {
function resize() {
var scale = Math.min(
window.innerWidth / width,
window.innerHeight / height,
1
window.innerHeight / height
)
view.style.width = Math.round(width * scale) + 'px'
view.style.height = Math.round(height * scale) + 'px'
Expand Down

0 comments on commit 85ad540

Please sign in to comment.