diff Game.cpp @ 1984:b00f5bb7d930

Added back window position saving Added Build/ to .hgignore
author zipi
date Sat, 02 Nov 2013 10:14:14 +0000
parents c1c74df0a33e
children 4088cc908c78
line wrap: on
line diff
--- a/Game.cpp	Fri Nov 01 17:29:49 2013 +0600
+++ b/Game.cpp	Sat Nov 02 10:14:14 2013 +0000
@@ -752,11 +752,11 @@
 
 
   WriteWindowsRegistryInt("startinwindow", pRenderer->bWindowMode);
-  /*if ( GetWindowRect(hWnd, &Rect) && pRenderer->bWindowMode )
+  if ( GetWindowRect(window->GetApiHandle(), &Rect) && pRenderer->bWindowMode )
   {
     WriteWindowsRegistryInt("window X", Rect.left);
     WriteWindowsRegistryInt("window Y", Rect.top);
-  }*/
+  }
   WriteWindowsRegistryInt("valAlwaysRun", bAlwaysRun);
   pItemsTable->Release();
   pNPCStats->Release();