Enable High DPI support (#231)

This commit is contained in:
剧毒的KCN
2024-06-23 22:34:03 +08:00
committed by GitHub
parent 3d160f9b90
commit c62b46850c
3 changed files with 39 additions and 0 deletions

View File

@@ -71,6 +71,12 @@ namespace GrasscutterTools
if (result != -1)
return result;
// 开启高DPI支持
if (Environment.OSVersion.Version.Major >= 6) // 至少需要Vista系统
{
HighDPIUtil.SetDpiAwareness();
}
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);