diff options
author | ache <ache@FreeBSD.org> | 1995-03-21 01:06:07 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1995-03-21 01:06:07 +0000 |
commit | 593e132519efda0c2b9dcbda13d9a56f632674e3 (patch) | |
tree | 0ecec61a76aad412c6a75e3018515a91634534d8 /gnu/lib | |
parent | 576eeae319c2d47d75347b5764ce7d72ee159dd5 (diff) | |
download | FreeBSD-src-593e132519efda0c2b9dcbda13d9a56f632674e3.zip FreeBSD-src-593e132519efda0c2b9dcbda13d9a56f632674e3.tar.gz |
Saved scroll fixed.
Diffstat (limited to 'gnu/lib')
-rw-r--r-- | gnu/lib/libdialog/menubox.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gnu/lib/libdialog/menubox.c b/gnu/lib/libdialog/menubox.c index ef1eb70..15324b4 100644 --- a/gnu/lib/libdialog/menubox.c +++ b/gnu/lib/libdialog/menubox.c @@ -129,7 +129,7 @@ int dialog_menu(unsigned char *title, unsigned char *prompt, int height, int wid /* Print the menu */ for (i = 0; i < max_choice; i++) - print_item(menu, items[i*2], items[i*2 + 1], i, i == choice); + print_item(menu, items[(scroll+i)*2], items[(scroll+i)*2 + 1], i, i == choice); wnoutrefresh(menu); print_arrows(dialog, scroll, menu_height, item_no, box_x, box_y, tag_x, cur_x, cur_y); |