CoderJoeW / PhantomGUI

A GUI built on top of https://github.com/jhead/phantom
MIT License
1 stars 4 forks source link

Fixed WinForms blurriness with Windows Vista+ Win32 API call #10

Closed maratmuginov closed 4 years ago

maratmuginov commented 4 years ago

WinForms has an inherent blurriness with high DPI screens that can be fixed with a simple Win32 API call available in Windows Vista or older. if (Environment.OSVersion.Version.Major >= 6) SetProcessDPIAware(); The check ensures that the form remains compatible with XP.