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:
+6
-13
@@ -986,20 +986,13 @@ curses_putmsghistory(const char *msg, boolean restoring_msghist)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* FIXME:
|
* Restoring a game with window borders on and align_status:left
|
||||||
* restoring a game with window borders on and align_status:left
|
* (which pushes the starting column of the message window to the
|
||||||
* (which pushes the starting column of the message window to the
|
* right) brings up an initial display where the border around
|
||||||
* right) brings up an initial display where the border around
|
* the message window is missing. This draws it.
|
||||||
* 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.
|
|
||||||
*/
|
*/
|
||||||
if (restoring_msghist && curses_window_has_border(WIN_MESSAGE)) {
|
if (restoring_msghist)
|
||||||
WINDOW *win = curses_get_nhwin(WIN_MESSAGE);
|
curses_last_messages();
|
||||||
|
|
||||||
box(win, 0, 0);
|
|
||||||
wrefresh(win);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*cursmesg.c*/
|
/*cursmesg.c*/
|
||||||
|
|||||||
Reference in New Issue
Block a user