summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/libunix.cc
diff options
context:
space:
mode:
authorRobert Vollmert <rvollmert@gmx.net>2009-11-26 11:30:11 +0100
committerRobert Vollmert <rvollmert@gmx.net>2009-11-26 11:56:05 +0100
commitea5213b7e25e293ceabbf98a4bf6e5bf14dd65b2 (patch)
treed4597d2095d79fbcb2dbb0c57d4908ece6fa112d /crawl-ref/source/libunix.cc
parentf97ca6b3264c621330c0251b9776bf3d06530790 (diff)
downloadcrawl-ref-ea5213b7e25e293ceabbf98a4bf6e5bf14dd65b2.tar.gz
crawl-ref-ea5213b7e25e293ceabbf98a4bf6e5bf14dd65b2.zip
Reorder message window scrolling.
This should fix display of bottom message window line.
Diffstat (limited to 'crawl-ref/source/libunix.cc')
-rw-r--r--crawl-ref/source/libunix.cc6
1 files changed, 3 insertions, 3 deletions
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.
{