+2019-08-20 Tom Tromey <tom@tromey.com>
+
+ * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
+ (tui_unhighlight_win, tui_highlight_win)
+ (tui_win_info::make_window): Update.
+ * tui/tui-data.h (HILITE, NO_HILITE): Remove.
+
2019-08-20 Tom Tromey <tom@tromey.com>
* tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
/* Draw a border arround the window. */
static void
box_win (struct tui_win_info *win_info,
- int highlight_flag)
+ bool highlight_flag)
{
if (win_info && win_info->handle)
{
int attrs;
win = win_info->handle;
- if (highlight_flag == HILITE)
+ if (highlight_flag)
attrs = tui_active_border_attrs;
else
attrs = tui_border_attrs;
&& win_info->can_highlight
&& win_info->handle != NULL)
{
- box_win (win_info, NO_HILITE);
+ box_win (win_info, false);
win_info->refresh_window ();
win_info->set_highlight (false);
}
&& win_info->can_highlight
&& win_info->handle != NULL)
{
- box_win (win_info, HILITE);
+ box_win (win_info, true);
win_info->refresh_window ();
win_info->set_highlight (true);
}
{
tui_gen_win_info::make_window ();
if (handle != NULL && can_box ())
- box_win (this, NO_HILITE);
+ box_win (this, false);
}
/* We can't really make windows visible, or invisible. So we have to