mirror of
https://github.com/jie65535/GrasscutterCommandGenerator.git
synced 2025-12-10 08:51:34 +08:00
Enable High DPI support (#231)
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user