Skip to content

Commit 0a5e6b3

Browse files
committed
fix warning
1 parent 744dcca commit 0a5e6b3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

CSharpMath.Editor.Tests.Visualizer/Checker.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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);
6767
moveCursor:var pos = Adjust(new Rectangle(x, y, 0, 0));

0 commit comments

Comments
 (0)