From: Iain Patterson Date: Mon, 19 Apr 2010 20:57:27 +0000 (+0100) Subject: Don't break the window size. X-Git-Tag: v2.3~4 X-Git-Url: http://git.iain.cx/?a=commitdiff_plain;h=0ac37dac5807d10287e6f2ff78aa3c9c20e24114;p=nssm.git Don't break the window size. The dialogue was being moved incorrectly, resulting in it inadvertently changing size. --- diff --git a/gui.cpp b/gui.cpp index 4461e8c..c143162 100644 --- a/gui.cpp +++ b/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 */