This commit is contained in:
Lucca Faria Ferri 2023-01-28 04:44:06 -08:00
parent b66569abbd
commit 932215987a

View File

@ -397,7 +397,6 @@ namespace DiIiS_NA
[DllImport("kernel32.dll", ExactSpelling = true)]
static extern IntPtr GetConsoleWindow();
static IntPtr ThisConsole = GetConsoleWindow();
[DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = true)]
@ -413,7 +412,7 @@ namespace DiIiS_NA
{
if (Environment.OSVersion.Platform == PlatformID.Win32NT)
{
ShowWindow(ThisConsole, MAXIMIZE);
ShowWindow(GetConsoleWindow(), MAXIMIZE);
}
}
catch{ /*ignore*/ }