From 58f9e368c8366bba103ae9214638cc4c99fe4caf Mon Sep 17 00:00:00 2001 From: "C. Davis" Date: Fri, 10 Aug 2012 20:05:20 -0700 Subject: regedit: Handle term resizes. Reviewed-by: Andreas Schneider Reviewed-by: Michael Adam --- source3/utils/regedit_dialog.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source3/utils/regedit_dialog.c') 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; } } -- cgit