diff options
| author | Jordan K. Hubbard <jkh@FreeBSD.org> | 1996-01-01 03:43:58 +0000 |
|---|---|---|
| committer | Jordan K. Hubbard <jkh@FreeBSD.org> | 1996-01-01 03:43:58 +0000 |
| commit | 738c371d22563551af2ff0936fed8e09fa5f8c19 (patch) | |
| tree | 5a29b9e618eb6168395065b6c57c1bd661a23bef /gnu/lib/libdialog/textbox.c | |
| parent | 961c0bd1a8c7bafec6298723745a31364d402fcf (diff) | |
Notes
Diffstat (limited to 'gnu/lib/libdialog/textbox.c')
| -rw-r--r-- | gnu/lib/libdialog/textbox.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gnu/lib/libdialog/textbox.c b/gnu/lib/libdialog/textbox.c index b466f797a109..2abd3e924617 100644 --- a/gnu/lib/libdialog/textbox.c +++ b/gnu/lib/libdialog/textbox.c @@ -89,8 +89,8 @@ int dialog_textbox(unsigned char *title, unsigned char *file, int height, int wi 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) |
