mirror of
https://github.com/kangyu-california/PersistentWindows.git
synced 2025-05-11 04:55:39 +02:00
fix blurred UI by using high DPI awareness setting. Get/Set window position still uses DPI unaware setting
This commit is contained in:
parent
2fca222be2
commit
0920e2533c
8 changed files with 114 additions and 5 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue