In CRT unit, ScreenWidth() and ScreenHeight() functions are missing. Both functions return console's screen width and height respectively, in character. The compiler already has had this information shown after compilation. So, it's just a matter of exposing them into these appropriate functions.
In the old CRT unit, both are constants taken from the OS configuration. But as we are on mobile, they should be function because we need them from the OS dynamically i.e. screen orientation change on runtime. They're similar to getMaxX() and getMaxY() functions in the Graph unit.
In CRT unit,
ScreenWidth()
andScreenHeight()
functions are missing. Both functions return console's screen width and height respectively, in character. The compiler already has had this information shown after compilation. So, it's just a matter of exposing them into these appropriate functions.In the old CRT unit, both are constants taken from the OS configuration. But as we are on mobile, they should be function because we need them from the OS dynamically i.e. screen orientation change on runtime. They're similar to
getMaxX()
andgetMaxY()
functions in the Graph unit.