Don't break the window size.
authorIain Patterson <me@iain.cx>
Mon, 19 Apr 2010 20:57:27 +0000 (21:57 +0100)
committerIain Patterson <me@iain.cx>
Mon, 19 Apr 2010 20:57:27 +0000 (21:57 +0100)
The dialogue was being moved incorrectly, resulting in it inadvertently
changing size.

gui.cpp

diff --git a/gui.cpp b/gui.cpp
index 4461e8c..c143162 100644 (file)
--- a/gui.cpp
+++ b/gui.cpp
@@ -58,7 +58,7 @@ void centre_window(HWND window) {
   /* Centre window */\r
   x = (desktop_size.right - size.right) / 2;\r
   y = (desktop_size.bottom - size.bottom) / 2;\r
-  MoveWindow(window, x, y, size.right, size.bottom, 0);\r
+  MoveWindow(window, x, y, size.right - size.left, size.bottom - size.top, 0);\r
 }\r
 \r
 /* Install the service */\r