summaryrefslogtreecommitdiffstats
path: root/gnu/lib/libdialog/prgbox.c
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/lib/libdialog/prgbox.c')
-rw-r--r--gnu/lib/libdialog/prgbox.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gnu/lib/libdialog/prgbox.c b/gnu/lib/libdialog/prgbox.c
index 11274e2..951d666 100644
--- a/gnu/lib/libdialog/prgbox.c
+++ b/gnu/lib/libdialog/prgbox.c
@@ -49,8 +49,8 @@ int dialog_prgbox(unsigned char *title, const unsigned char *line, int height, i
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)
OpenPOWER on IntegriCloud