X-Git-Url: http://git.iain.cx/?a=blobdiff_plain;f=gui.cpp;h=c143162380c0900c4e3383b4cd53003504f5c258;hb=0ac37dac5807d10287e6f2ff78aa3c9c20e24114;hp=4461e8c6b4127f22dbe0def018426261fda0fb4f;hpb=44284fb9f67e45b3fe7dcfa272f5ac01bc184022;p=nssm.git 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 */