fix blurred UI by using high DPI awareness setting. Get/Set window position still uses DPI unaware setting

This commit is contained in:
Kang Yu 2023-07-27 23:38:07 -07:00
parent 2fca222be2
commit 0920e2533c
8 changed files with 114 additions and 5 deletions

View file

@ -32,6 +32,9 @@ namespace PersistentWindows.SystrayShell
[STAThread]
static void Main(string[] args)
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Log.Init();
pwp = new PersistentWindowProcessor();
@ -212,9 +215,6 @@ namespace PersistentWindows.SystrayShell
}
}
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
string productName = System.Windows.Forms.Application.ProductName;
string appDataFolder = redirect_appdata ? "." :
Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData),
@ -297,6 +297,7 @@ namespace PersistentWindows.SystrayShell
}
Application.Run();
}
static void ShowRestoreTip()