curses vs !HILITE_STATUS

The curses interface wouldn't build with HILITE_STATUS disabled.  I
started adapting it to handle genl_status_update() but that was taking
too much effort with each niggling detail leading to another.  This
goes the opposite direction:  forcing the old STATUS_VIA_WINDOWPORT
behavior without having that #define available.  That dragged along a
bunch of unexpected changes too.
This commit is contained in:
PatR
2019-04-06 15:53:51 -07:00
parent f52e9865f2
commit 0e425d645f
8 changed files with 88 additions and 66 deletions
+2 -1
View File
@@ -354,7 +354,8 @@ curses_destroy_nhwindow(winid wid)
curses_teardown_messages(); /* discard ^P message history data */
break;
case STATUS_WIN:
curses_status_finish(); /* discard cached status data */
if (VIA_WINDOWPORT())
curses_status_finish(); /* discard cached status data */
break;
case INV_WIN:
iflags.perm_invent = 0; /* avoid unexpected update_inventory() */