Commit 375a8961 authored by Rafaël Carré's avatar Rafaël Carré

ncurses: fix display glitch in stats/info/meta boxes

parent be801200
...@@ -778,8 +778,7 @@ static int DrawMeta(intf_thread_t *p_intf) ...@@ -778,8 +778,7 @@ static int DrawMeta(intf_thread_t *p_intf)
continue; continue;
if (p_sys->b_color) color_set(C_CATEGORY, NULL); if (p_sys->b_color) color_set(C_CATEGORY, NULL);
MainBoxWrite(p_sys, l++, " [%s]", MainBoxWrite(p_sys, l++, " [%s]", vlc_meta_TypeToLocalizedString(i));
vlc_meta_TypeToLocalizedString(i));
if (p_sys->b_color) color_set(C_DEFAULT, NULL); if (p_sys->b_color) color_set(C_DEFAULT, NULL);
MainBoxWrite(p_sys, l++, " %s", psz_meta); MainBoxWrite(p_sys, l++, " %s", psz_meta);
} }
...@@ -1221,7 +1220,9 @@ static void Redraw(intf_thread_t *p_intf) ...@@ -1221,7 +1220,9 @@ static void Redraw(intf_thread_t *p_intf)
{ {
FillBox(p_intf); FillBox(p_intf);
if (p_sys->i_box_start > p_sys->i_box_lines_total - 1) if (p_sys->i_box_lines_total == 0)
p_sys->i_box_start = 0;
else if (p_sys->i_box_start > p_sys->i_box_lines_total - 1)
p_sys->i_box_start = p_sys->i_box_lines_total - 1; p_sys->i_box_start = p_sys->i_box_lines_total - 1;
y += __MIN(p_sys->i_box_lines_total - p_sys->i_box_start, y += __MIN(p_sys->i_box_lines_total - p_sys->i_box_start,
p_sys->i_box_height); p_sys->i_box_height);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment