summaryrefslogtreecommitdiff
path: root/source3/utils/regedit_dialog.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/utils/regedit_dialog.c')
-rw-r--r--source3/utils/regedit_dialog.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/utils/regedit_dialog.c b/source3/utils/regedit_dialog.c
index e7808e1495..802e6a806e 100644
--- a/source3/utils/regedit_dialog.c
+++ b/source3/utils/regedit_dialog.c
@@ -138,10 +138,10 @@ static void center_dialog_above_window(WINDOW *below, int *nlines, int *ncols,
}
if (*nlines < centery) {
- *y = centery - *nlines;
+ *y = centery - *nlines / 2;
}
if (*ncols < centerx) {
- *x = centerx - *ncols;
+ *x = centerx - *ncols / 2;
}
}