Mercurial > mm7
diff Game.cpp @ 2056:a35d173cd99c
Merge
author | Ritor1 |
---|---|
date | Sat, 30 Nov 2013 20:09:04 +0600 |
parents | 71a814f4482a |
children | b2a434d65344 |
line wrap: on
line diff
--- a/Game.cpp Sat Nov 30 20:08:51 2013 +0600 +++ b/Game.cpp Sat Nov 30 20:09:04 2013 +0600 @@ -748,14 +748,11 @@ //----- (004645FA) -------------------------------------------------------- void Game::Deinitialize() { - struct tagRECT Rect; // [sp+0h] [bp-10h]@6 - - WriteWindowsRegistryInt("startinwindow", pRenderer->bWindowMode); - if ( GetWindowRect(window->GetApiHandle(), &Rect) && pRenderer->bWindowMode ) + if (pRenderer->bWindowMode) { - WriteWindowsRegistryInt("window X", Rect.left); - WriteWindowsRegistryInt("window Y", Rect.top); + WriteWindowsRegistryInt("window X", window->GetX()); + WriteWindowsRegistryInt("window Y", window->GetY()); } window->Delete(); WriteWindowsRegistryInt("valAlwaysRun", bAlwaysRun);