mirror of
https://github.com/rkd77/elinks.git
synced 2024-10-17 06:24:12 -04:00
[menu] Removed commmented code
This commit is contained in:
parent
533e688ab1
commit
afa50fe6ae
@ -710,9 +710,6 @@ draw_menu_right_text_node(struct terminal *term, char *text, int len,
|
|||||||
static void
|
static void
|
||||||
display_menu(struct terminal *term, struct menu *menu)
|
display_menu(struct terminal *term, struct menu *menu)
|
||||||
{
|
{
|
||||||
// struct color_pair *normal_color = get_bfu_color(term, "menu.normal");
|
|
||||||
// struct color_pair *selected_color = get_bfu_color(term, "menu.selected");
|
|
||||||
// struct color_pair *frame_color = get_bfu_color(term, "menu.frame");
|
|
||||||
unsigned int normal_color_node = get_bfu_color_node(term, "menu.normal");
|
unsigned int normal_color_node = get_bfu_color_node(term, "menu.normal");
|
||||||
unsigned int selected_color_node = get_bfu_color_node(term, "menu.selected");
|
unsigned int selected_color_node = get_bfu_color_node(term, "menu.selected");
|
||||||
unsigned int frame_color_node = get_bfu_color_node(term, "menu.frame");
|
unsigned int frame_color_node = get_bfu_color_node(term, "menu.frame");
|
||||||
@ -750,7 +747,6 @@ display_menu(struct terminal *term, struct menu *menu)
|
|||||||
for (p = menu->first;
|
for (p = menu->first;
|
||||||
p < menu->size && p < menu->first + menu_height;
|
p < menu->size && p < menu->first + menu_height;
|
||||||
p++, box.y++) {
|
p++, box.y++) {
|
||||||
// struct color_pair *color = normal_color;
|
|
||||||
unsigned int color_node = normal_color_node;
|
unsigned int color_node = normal_color_node;
|
||||||
struct menu_item *mi = &menu->items[p];
|
struct menu_item *mi = &menu->items[p];
|
||||||
int selected = (p == menu->selected);
|
int selected = (p == menu->selected);
|
||||||
@ -814,11 +810,6 @@ display_menu(struct terminal *term, struct menu *menu)
|
|||||||
#ifdef CONFIG_DEBUG
|
#ifdef CONFIG_DEBUG
|
||||||
/* Help to detect action + right text. --Zas */
|
/* Help to detect action + right text. --Zas */
|
||||||
if (mi_has_right_text(mi)) {
|
if (mi_has_right_text(mi)) {
|
||||||
// if (color == selected_color)
|
|
||||||
// color = normal_color;
|
|
||||||
// else
|
|
||||||
// color = selected_color;
|
|
||||||
|
|
||||||
if (color_node == selected_color_node)
|
if (color_node == selected_color_node)
|
||||||
color_node = normal_color_node;
|
color_node = normal_color_node;
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user