Merge pull request #4077 from shenweip/patch-1

Don't save the console position when it is minimized.
This commit is contained in:
Henrik Rydgård 2013-10-08 08:36:00 -07:00
commit 43445eb479

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;