Skip to content

Commit

Permalink
0.8.6 ie worked fine
Browse files Browse the repository at this point in the history
  • Loading branch information
playif committed Aug 9, 2014
1 parent 3403eea commit 93ced6a
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions example/main.dart
Expand Up @@ -98,28 +98,28 @@ main() {
// dom.window.console.log("preload");


var w = dom.window.innerWidth * dom.window.devicePixelRatio,
h = dom.window.innerHeight * dom.window.devicePixelRatio,
width = (h > w) ? h : w,
height = (h > w) ? w : h;

// Hack to avoid iPad Retina and large Android devices. Tell it to scale up.
if (dom.window.innerWidth >= 1024 && dom.window.devicePixelRatio >= 2)
{
width = Math.round(width / 2);
height = Math.round(height / 2);
}
// reduce screen size by one 3rd on devices like Nexus 5
if (dom.window.devicePixelRatio == 3)
{
width = Math.round(width / 3) * 2;
height = Math.round(height / 3) * 2;
}

var game = new Game(width, height, CANVAS, '');


//Game game = new Game(800, 600, CANVAS, '');
// var w = dom.window.innerWidth * dom.window.devicePixelRatio,
// h = dom.window.innerHeight * dom.window.devicePixelRatio,
// width = (h > w) ? h : w,
// height = (h > w) ? w : h;
//
// // Hack to avoid iPad Retina and large Android devices. Tell it to scale up.
// if (dom.window.innerWidth >= 1024 && dom.window.devicePixelRatio >= 2)
// {
// width = Math.round(width / 2);
// height = Math.round(height / 2);
// }
// // reduce screen size by one 3rd on devices like Nexus 5
// if (dom.window.devicePixelRatio == 3)
// {
// width = Math.round(width / 3) * 2;
// height = Math.round(height / 3) * 2;
// }

//var game = new Game(width, height, CANVAS, '');


Game game = new Game(800, 600, CANVAS, '');

dom.SelectElement select = dom.document.getElementById("examples") as dom.SelectElement;
for (String key in examples.keys) {
Expand Down

0 comments on commit 93ced6a

Please sign in to comment.