mirror of
https://github.com/jie65535/GrasscutterCommandGenerator.git
synced 2025-12-16 10:32:58 +08:00
Enable High DPI support
GCT的高DPI支持
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