@@ -20,20 +20,13 @@ BasicGame.Boot.prototype = {
2020
2121 this . input . maxPointers = 1 ;
2222 this . stage . disableVisibilityChange = true ;
23+ this . scale . scaleMode = Phaser . ScaleManager . SHOW_ALL ;
24+ this . scale . setMinMax ( 480 , 260 , 1024 , 768 ) ;
25+ this . scale . pageAlignHorizontally = true ;
26+ this . scale . pageAlignVertically = true ;
2327
24- if ( this . game . device . desktop )
28+ if ( ! this . game . device . desktop )
2529 {
26- this . scale . scaleMode = Phaser . ScaleManager . SHOW_ALL ;
27- this . scale . setMinMax ( 480 , 260 , 1024 , 768 ) ;
28- this . scale . pageAlignHorizontally = true ;
29- this . scale . pageAlignVertically = true ;
30- }
31- else
32- {
33- this . scale . scaleMode = Phaser . ScaleManager . SHOW_ALL ;
34- this . scale . setMinMax ( 480 , 260 , 1024 , 768 ) ;
35- this . scale . pageAlignHorizontally = true ;
36- this . scale . pageAlignVertically = true ;
3730 this . scale . forceOrientation ( true , false ) ;
3831 this . scale . setResizeCallback ( this . gameResized , this ) ;
3932 this . scale . enterIncorrectOrientation . add ( this . enterIncorrectOrientation , this ) ;
@@ -80,4 +73,4 @@ BasicGame.Boot.prototype = {
8073
8174 }
8275
83- } ;
76+ } ;
0 commit comments