aboutsummaryrefslogtreecommitdiff
path: root/NotePad
diff options
context:
space:
mode:
authorSmallFox <2806143047@qq.com>2026-04-08 15:02:49 +0800
committerSmallFox <2806143047@qq.com>2026-04-08 15:02:49 +0800
commita4f2ef9fc0d3d5b941a982b265c68faad682f2d5 (patch)
tree5d4e44fd638c31efc30f0ad605fcd5de4030c9a3 /NotePad
parent2eb16b22f8bb9e08fc690be09ab92b29f4911d3d (diff)
parent00c5ce748b56c672d2f4e796d3f0b263200f95f8 (diff)
Merge branch 'feat/linux-support'HEADmaster
Diffstat (limited to 'NotePad')
-rw-r--r--NotePad/NotePad/Program.cs5
1 files changed, 2 insertions, 3 deletions
diff --git a/NotePad/NotePad/Program.cs b/NotePad/NotePad/Program.cs
index c1e3d1e..0f5f1bb 100644
--- a/NotePad/NotePad/Program.cs
+++ b/NotePad/NotePad/Program.cs
@@ -1,7 +1,4 @@
using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Threading.Tasks;
using System.Windows.Forms;
namespace NotePad
@@ -14,7 +11,9 @@ namespace NotePad
[STAThread]
static void Main()
{
+#if NETFRAMEWORK || NETCOREAPP
Application.SetHighDpiMode(HighDpiMode.SystemAware);
+#endif
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new NotePad());