summaryrefslogtreecommitdiff
path: root/source3/utils/regedit_dialog.c
diff options
context:
space:
mode:
authorC. Davis <cd.rattan@gmail.com>2012-08-10 20:05:20 -0700
committerMichael Adam <obnox@samba.org>2013-04-29 13:06:20 +0200
commit58f9e368c8366bba103ae9214638cc4c99fe4caf (patch)
tree71cd6b23a7a47cbb2c26400dc9664734a6d57215 /source3/utils/regedit_dialog.c
parent560003fcd98eb109dd8391c7975aae4ef277604b (diff)
downloadsamba-58f9e368c8366bba103ae9214638cc4c99fe4caf.tar.gz
samba-58f9e368c8366bba103ae9214638cc4c99fe4caf.tar.bz2
samba-58f9e368c8366bba103ae9214638cc4c99fe4caf.zip
regedit: Handle term resizes.
Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
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;
}
}