From 0ac37dac5807d10287e6f2ff78aa3c9c20e24114 Mon Sep 17 00:00:00 2001 From: Iain Patterson Date: Mon, 19 Apr 2010 21:57:27 +0100 Subject: [PATCH] Don't break the window size. The dialogue was being moved incorrectly, resulting in it inadvertently changing size. --- gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */ -- 2.7.4