git://git.iain.cx/iain
/
nssm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
44284fb
)
Don't break the window size.
author
Iain Patterson
<me@iain.cx>
Mon, 19 Apr 2010 20:57:27 +0000
(21:57 +0100)
committer
Iain 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
patch
|
blob
|
history
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