mirror of
https://github.com/jie65535/GrasscutterCommandGenerator.git
synced 2026-11-05 15:11:59 +08:00
Enable High DPI support (#231)
This commit is contained in:
1 parent
3d160f9b90
commit
c62b46850c
3 files changed
+39
No files matched your search
@@ -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