File tree Expand file tree Collapse file tree
CSharpMath.Editor.Tests.Visualizer Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ static int ReadInt(string message) {
2727 try {
2828 Console . Title = "CSharpMath.Editor.Tests Visualizer" ;
2929 Console . Clear ( ) ;
30- if ( Environment . OSVersion . Platform == PlatformID . Win32NT )
30+ if ( OperatingSystem . IsWindows ( ) )
3131 Console . SetBufferSize ( Console . WindowWidth , Console . BufferHeight ) ; // line wrapping
3232 Console . ResetColor ( ) ;
3333 Console . WriteLine ( "Welcome to the CSharpMath.Editor.Tests Visualizer!" ) ;
@@ -61,7 +61,7 @@ void AssignDisplay() {
6161 var y = ReadInt ( "Input Touch Y (integer): " ) ;
6262 Console . Clear ( ) ;
6363
64- if ( Environment . OSVersion . Platform == PlatformID . Win32NT )
64+ if ( OperatingSystem . IsWindows ( ) )
6565 Console . SetBufferSize ( 10000 , Console . BufferHeight ) ; // no line wrapping
6666 display . Draw ( context ) ;
6767moveCursor : var pos = Adjust ( new Rectangle ( x , y , 0 , 0 ) ) ;
You can’t perform that action at this time.
0 commit comments