summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Zelkin <phantom@FreeBSD.org>2005-01-12 21:01:20 +0000
committerAlexey Zelkin <phantom@FreeBSD.org>2005-01-12 21:01:20 +0000
commitd372cbc1e87464b58f866a5e2aa1d44f5d41e221 (patch)
tree093d45767e28b9e872879b14d3010095e0359e78
parentbfe60c7f04d59e294026527bd350c77961275a96 (diff)
Notes
-rw-r--r--gnu/lib/libdialog/checklist.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/gnu/lib/libdialog/checklist.c b/gnu/lib/libdialog/checklist.c
index c696d47dcdf8..94d1678d9274 100644
--- a/gnu/lib/libdialog/checklist.c
+++ b/gnu/lib/libdialog/checklist.c
@@ -569,6 +569,15 @@ draw:
if (redraw_menu) {
getyx(list, old_y, old_x);
wclear(list);
+
+ /*
+ * Re-draw a box around the list items. It is required
+ * if amount of list items is smaller than height of listbox.
+ * Otherwise un-redrawn field will be filled with default
+ * screen attributes instead of dialog attributes.
+ */
+ draw_box(dialog, box_y, box_x, list_height + 2, list_width + 2, menubox_border_attr, menubox_attr);
+
for (i = 0; i < max_choice; i++)
print_item(list, items[(scroll + i) * 3], items[(scroll + i) * 3 + 1], status[scroll + i], i, i == choice, DREF(ditems, scroll + i), list_width, item_x, check_x);
print_arrows(dialog, scroll, list_height, item_no, box_x, box_y, check_x + 4, cur_x, cur_y);