Open ghost opened 10 years ago
In Dart, if (Null) and if (!Null) cause type errors.
if (Null)
if (!Null)
ScaleManager depends on !isFullScreen evaluating like isFullScreen == Null in at least one line of code.
ScaleManager
!isFullScreen
isFullScreen == Null
If the following lines of code are placed in the preload() method for a State implementer:
game.scale.scaleMode = ScaleManager.SHOW_ALL; game.scale.setScreenSize(false);
A type error occurs at line 1108 in scale_manager.dart: } else if (!this.isFullScreen) {
} else if (!this.isFullScreen) {
isFullScreen should probably be initialized to false.
isFullScreen
false
In Dart,
if (Null)
andif (!Null)
cause type errors.ScaleManager
depends on!isFullScreen
evaluating likeisFullScreen == Null
in at least one line of code.If the following lines of code are placed in the preload() method for a State implementer:
A type error occurs at line 1108 in scale_manager.dart:
} else if (!this.isFullScreen) {
isFullScreen
should probably be initialized tofalse
.