Don't save the console position when it is minimized.

This commit is contained in:
shenweip 2013-10-08 22:04:07 +08:00
parent 7059efd6b2
commit db44c4c478

View File

@ -277,7 +277,7 @@ void WindowsHost::UpdateConsolePosition()
{
RECT rc;
HWND console = GetConsoleWindow();
if (console != NULL && GetWindowRect(console, &rc))
if (console != NULL && GetWindowRect(console, &rc) && !IsIconic(console))
{
g_Config.iConsoleWindowX = rc.left;
g_Config.iConsoleWindowY = rc.top;