diff options
author | jkh <jkh@FreeBSD.org> | 1996-01-01 03:43:58 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1996-01-01 03:43:58 +0000 |
commit | ff9186df13d1aa41b177a5cc27eae6ebed5bff8b (patch) | |
tree | 5a29b9e618eb6168395065b6c57c1bd661a23bef /gnu/lib/libdialog/inputbox.c | |
parent | 2d12b11ef801b89eb3beaa3f42ddc8e8fdac9b2e (diff) | |
download | FreeBSD-src-ff9186df13d1aa41b177a5cc27eae6ebed5bff8b.zip FreeBSD-src-ff9186df13d1aa41b177a5cc27eae6ebed5bff8b.tar.gz |
Next round of changes - make dialog boxes drawable at arbitrary X,Y locations
and add selection traversal callbacks so context-sensitive behavior can
even be implemented for individual menu items. These work around the two
largest issues holding me back with some of my sysinstall changes.
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) |