mirror of
https://github.com/chylex/TweetDuck.git
synced 2025-05-17 20:34:09 +02:00
parent
3f44f3bab4
commit
502ac4ebc1
@ -18,6 +18,9 @@ static class NativeMethods{
|
|||||||
[DllImport("user32.dll")]
|
[DllImport("user32.dll")]
|
||||||
public static extern IntPtr GetForegroundWindow();
|
public static extern IntPtr GetForegroundWindow();
|
||||||
|
|
||||||
|
[DllImport("user32.dll")]
|
||||||
|
public static extern bool SetProcessDPIAware();
|
||||||
|
|
||||||
[StructLayout(LayoutKind.Sequential)]
|
[StructLayout(LayoutKind.Sequential)]
|
||||||
public struct RECT{
|
public struct RECT{
|
||||||
public int Left;
|
public int Left;
|
||||||
|
@ -19,6 +19,7 @@ static class Program{
|
|||||||
private static int Main(string[] args){
|
private static int Main(string[] args){
|
||||||
Application.EnableVisualStyles();
|
Application.EnableVisualStyles();
|
||||||
Application.SetCompatibleTextRenderingDefault(false);
|
Application.SetCompatibleTextRenderingDefault(false);
|
||||||
|
NativeMethods.SetProcessDPIAware();
|
||||||
|
|
||||||
Thread.CurrentThread.CurrentCulture = CultureInfo.InvariantCulture;
|
Thread.CurrentThread.CurrentCulture = CultureInfo.InvariantCulture;
|
||||||
CultureInfo.DefaultThreadCurrentCulture = CultureInfo.InvariantCulture;
|
CultureInfo.DefaultThreadCurrentCulture = CultureInfo.InvariantCulture;
|
||||||
|
Loading…
Reference in New Issue
Block a user