curses: message window border again
This is a better workaround for the missing message window border when when restoring with align_status:left. Unlike the previous hack, this may even be the correct way to handle it in the first place. I haven't tracked down when the problem started.
This commit is contained in:
@@ -986,20 +986,13 @@ curses_putmsghistory(const char *msg, boolean restoring_msghist)
|
||||
}
|
||||
|
||||
/*
|
||||
* FIXME:
|
||||
* restoring a game with window borders on and align_status:left
|
||||
* (which pushes the starting column of the message window to the
|
||||
* right) brings up an initial display where the border around
|
||||
* the message window is missing. Once a new message causes it
|
||||
* to be scrolled, its border appears. This absurd hack forces
|
||||
* that to be shown right away.
|
||||
* Restoring a game with window borders on and align_status:left
|
||||
* (which pushes the starting column of the message window to the
|
||||
* right) brings up an initial display where the border around
|
||||
* the message window is missing. This draws it.
|
||||
*/
|
||||
if (restoring_msghist && curses_window_has_border(WIN_MESSAGE)) {
|
||||
WINDOW *win = curses_get_nhwin(WIN_MESSAGE);
|
||||
|
||||
box(win, 0, 0);
|
||||
wrefresh(win);
|
||||
}
|
||||
if (restoring_msghist)
|
||||
curses_last_messages();
|
||||
}
|
||||
|
||||
/*cursmesg.c*/
|
||||
|
||||
Reference in New Issue
Block a user