some tty perminvent follow-up()
This commit is contained in:
@@ -2765,6 +2765,7 @@ tty_destroy_nhwindow(winid window)
|
||||
}
|
||||
cw->maxrow = cw->maxcol = 0;
|
||||
g.perm_invent_win = WIN_ERR;
|
||||
done_tty_perm_invent_init = FALSE;
|
||||
}
|
||||
#endif
|
||||
free_window_info(cw, TRUE);
|
||||
@@ -3926,24 +3927,6 @@ tty_invent_box_glyph_init(struct WinDesc *cw)
|
||||
done_tty_perm_invent_init = TRUE;
|
||||
}
|
||||
|
||||
void
|
||||
tty_perm_invent_toggled(boolean negated)
|
||||
{
|
||||
in_tty_perm_invent_toggled = TRUE;
|
||||
if (negated) {
|
||||
if (g.perm_invent_win != WIN_ERR)
|
||||
destroy_nhwindow(g.perm_invent_win), g.perm_invent_win = WIN_ERR;
|
||||
done_tty_perm_invent_init = FALSE;
|
||||
g.core_invent_state = 0;
|
||||
} else {
|
||||
core_update_invent_slot();
|
||||
/* Doing this here was a problem */
|
||||
// g.perm_invent_win = create_nhwindow(NHW_PERMINVENT);
|
||||
// if (g.perm_invent_win != WIN_ERR)
|
||||
// display_nhwindow(g.perm_invent_win, FALSE);
|
||||
}
|
||||
in_tty_perm_invent_toggled = FALSE;
|
||||
}
|
||||
#endif /* TTY_PERM_INVENT */
|
||||
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user