From ea5213b7e25e293ceabbf98a4bf6e5bf14dd65b2 Mon Sep 17 00:00:00 2001 From: Robert Vollmert Date: Thu, 26 Nov 2009 11:30:11 +0100 Subject: Reorder message window scrolling. This should fix display of bottom message window line. --- crawl-ref/source/libunix.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'crawl-ref/source/libunix.cc') diff --git a/crawl-ref/source/libunix.cc b/crawl-ref/source/libunix.cc index d76e3934cf..1da742ee28 100644 --- a/crawl-ref/source/libunix.cc +++ b/crawl-ref/source/libunix.cc @@ -429,9 +429,6 @@ void message_out(int which_line, int color, const char *s, int firstcol, else firstcol--; - wmove(Message_Window, which_line, firstcol); - waddstr_with_altcharset(Message_Window, s); - if (newline && which_line == crawl_view.msgsz.y - 1) { int x, y; @@ -440,6 +437,9 @@ void message_out(int which_line, int color, const char *s, int firstcol, wmove(Message_Window, y - 1, x); } + wmove(Message_Window, which_line, firstcol); + waddstr_with_altcharset(Message_Window, s); + // Fix stdscr cursor to same place as Message_Window cursor. This // is necessary because when reading input we use stdscr. { -- cgit v1.2.3-54-g00ecf