diff OSWindow.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 ef4dcee1b4a1
line wrap: on
line diff
--- a/OSWindow.cpp	Fri Nov 01 17:29:49 2013 +0600
+++ b/OSWindow.cpp	Sat Nov 02 10:14:14 2013 +0000
@@ -517,8 +517,8 @@
     if (!GetMenu(api_handle))
       window_total_height += GetSystemMetrics(SM_CYMENU);
   #endif
-  MoveWindow(api_handle, (GetSystemMetrics(SM_CXSCREEN) - window_total_width) / 2,
-                         (GetSystemMetrics(SM_CYSCREEN) - window_total_height) / 2,
+  MoveWindow(api_handle, ReadWindowsRegistryInt("window X", (GetSystemMetrics(SM_CXSCREEN) - window_total_width) / 2),
+                         ReadWindowsRegistryInt("window X", (GetSystemMetrics(SM_CYSCREEN) - window_total_height) / 2),
                          window_total_width,
                          window_total_height, 0);
   #ifdef _DEBUG