diff options
author | Peter Korsgaard <peter@korsgaard.com> | 2013-12-01 20:31:43 +0100 |
---|---|---|
committer | Peter Korsgaard <peter@korsgaard.com> | 2013-12-01 20:32:00 +0100 |
commit | 50ce7ffb76b989c90636876153e568da7615b8c3 (patch) | |
tree | 1de9424dd5332431d2a30d3aafe332e7c0999476 /support/kconfig/lxdialog/inputbox.c | |
parent | 9b3904543ca04c5d5fe5f6974539eed376de2290 (diff) | |
parent | cb08d7b05db54eb7b2c52deabbd57c541777a422 (diff) | |
download | buildroot-50ce7ffb76b989c90636876153e568da7615b8c3.tar.gz buildroot-50ce7ffb76b989c90636876153e568da7615b8c3.zip |
Merge branch 'next'
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'support/kconfig/lxdialog/inputbox.c')
-rw-r--r-- | support/kconfig/lxdialog/inputbox.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/support/kconfig/lxdialog/inputbox.c b/support/kconfig/lxdialog/inputbox.c index 21404a04d7..447a582198 100644 --- a/support/kconfig/lxdialog/inputbox.c +++ b/support/kconfig/lxdialog/inputbox.c @@ -56,14 +56,14 @@ int dialog_inputbox(const char *title, const char *prompt, int height, int width strcpy(instr, init); do_resize: - if (getmaxy(stdscr) <= (height - 2)) + if (getmaxy(stdscr) <= (height - INPUTBOX_HEIGTH_MIN)) return -ERRDISPLAYTOOSMALL; - if (getmaxx(stdscr) <= (width - 2)) + if (getmaxx(stdscr) <= (width - INPUTBOX_WIDTH_MIN)) return -ERRDISPLAYTOOSMALL; /* center dialog box on screen */ - x = (COLS - width) / 2; - y = (LINES - height) / 2; + x = (getmaxx(stdscr) - width) / 2; + y = (getmaxy(stdscr) - height) / 2; draw_shadow(stdscr, y, x, height, width); |