summaryrefslogtreecommitdiff
path: root/gnu/lib/libdialog/inputbox.c
diff options
context:
space:
mode:
authorJordan K. Hubbard <jkh@FreeBSD.org>1996-01-01 03:43:58 +0000
committerJordan K. Hubbard <jkh@FreeBSD.org>1996-01-01 03:43:58 +0000
commit738c371d22563551af2ff0936fed8e09fa5f8c19 (patch)
tree5a29b9e618eb6168395065b6c57c1bd661a23bef /gnu/lib/libdialog/inputbox.c
parent961c0bd1a8c7bafec6298723745a31364d402fcf (diff)
Notes
Diffstat (limited to 'gnu/lib/libdialog/inputbox.c')
-rw-r--r--gnu/lib/libdialog/inputbox.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gnu/lib/libdialog/inputbox.c b/gnu/lib/libdialog/inputbox.c
index b552a9a8fc21..fc9a40c4c78a 100644
--- a/gnu/lib/libdialog/inputbox.c
+++ b/gnu/lib/libdialog/inputbox.c
@@ -47,8 +47,8 @@ int dialog_inputbox(unsigned char *title, unsigned char *prompt, int height, int
if (height > LINES)
height = LINES;
/* center dialog box on screen */
- x = (COLS - width)/2;
- y = (LINES - height)/2;
+ x = DialogX ? DialogX : (COLS - width)/2;
+ y = DialogY ? DialogY : (LINES - height)/2;
#ifdef HAVE_NCURSES
if (use_shadow)