diff options
Diffstat (limited to 'gnu/lib/libdialog/inputbox.c')
-rw-r--r-- | gnu/lib/libdialog/inputbox.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gnu/lib/libdialog/inputbox.c b/gnu/lib/libdialog/inputbox.c index b552a9a..fc9a40c 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) |