patch-2.0.36 linux/scripts/lxdialog/menubox.c

Next file: linux/scripts/lxdialog/textbox.c
Previous file: linux/scripts/lxdialog/lxdialog.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.0.35/linux/scripts/lxdialog/menubox.c linux/scripts/lxdialog/menubox.c
@@ -39,8 +39,12 @@
     /* Clear 'residue' of last item */
     wattrset (win, menubox_attr);
     wmove (win, choice, 0);
+#if OLD_NCURSES
     for (i = 0; i < menu_width; i++)
 	waddch (win, ' ');
+#else
+    wclrtoeol(win);
+#endif
     wattrset (win, selected ? item_selected_attr : item_attr);
     mvwaddstr (win, choice, item_x, menu_item);
     if (hotkey) {
@@ -141,6 +145,7 @@
     for (i = 0; i < width - 2; i++)
 	waddch (dialog, ACS_HLINE);
     wattrset (dialog, dialog_attr);
+    wbkgdset (dialog, dialog_attr & A_COLOR);
     waddch (dialog, ACS_RTEE);
 
     if (title != NULL) {

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov