Fix for #106
This commit is contained in:
parent
b66569abbd
commit
932215987a
@ -397,7 +397,6 @@ namespace DiIiS_NA
|
|||||||
[DllImport("kernel32.dll", ExactSpelling = true)]
|
[DllImport("kernel32.dll", ExactSpelling = true)]
|
||||||
|
|
||||||
static extern IntPtr GetConsoleWindow();
|
static extern IntPtr GetConsoleWindow();
|
||||||
static IntPtr ThisConsole = GetConsoleWindow();
|
|
||||||
|
|
||||||
[DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = true)]
|
[DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = true)]
|
||||||
|
|
||||||
@ -413,7 +412,7 @@ namespace DiIiS_NA
|
|||||||
{
|
{
|
||||||
if (Environment.OSVersion.Platform == PlatformID.Win32NT)
|
if (Environment.OSVersion.Platform == PlatformID.Win32NT)
|
||||||
{
|
{
|
||||||
ShowWindow(ThisConsole, MAXIMIZE);
|
ShowWindow(GetConsoleWindow(), MAXIMIZE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch{ /*ignore*/ }
|
catch{ /*ignore*/ }
|
||||||
|
|||||||
Loading…
Reference in New Issue
user.block.title