So,I have some code like this, which I have happily cope/pasted from Joshua:
public static function winWidth():Int
{
var width:Int = Lib.current.stage.window.width;
if (width > 0)
return width;
else
return Lib.current.stage.stageWidth;
}
But suddenly, it stopped working properly in iOS 12.1 (or is it OpenFL problem?).
Lib.current.stage.window.width now returns only half of the screen size (same for height), why?
What should I use, that will always give me correct screen size?
Thank you!