浏览代码

Don't break the window size.

The dialogue was being moved incorrectly, resulting in it inadvertently
changing size.
Iain Patterson 15 年之前
父节点
当前提交
0ac37dac58
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      gui.cpp

+ 1 - 1
gui.cpp

@@ -58,7 +58,7 @@ void centre_window(HWND window) {
   /* Centre window */
   x = (desktop_size.right - size.right) / 2;
   y = (desktop_size.bottom - size.bottom) / 2;
-  MoveWindow(window, x, y, size.right, size.bottom, 0);
+  MoveWindow(window, x, y, size.right - size.left, size.bottom - size.top, 0);
 }
 
 /* Install the service */