diff options
author | Robert Vollmert <rvollmert@gmx.net> | 2009-11-26 17:16:08 +0100 |
---|---|---|
committer | Robert Vollmert <rvollmert@gmx.net> | 2009-11-26 17:16:08 +0100 |
commit | 9ff367c1410daee974c2a9619485c7d41d2ac6f8 (patch) | |
tree | 8d1f45ae736cd2ba40eebed6184d79d71478114e /crawl-ref/source/libgui.cc | |
parent | ef78118cbd7e21e5d33bfcab515ada5f6dd0d538 (diff) | |
download | crawl-ref-9ff367c1410daee974c2a9619485c7d41d2ac6f8.tar.gz crawl-ref-9ff367c1410daee974c2a9619485c7d41d2ac6f8.zip |
Simplify scrolling handling in message_out.
The newline parameter to message_out is gone. Instead, a
pointer to the message line is passed which may lie outside
the message window. The window is then scrolled to make
that line the last line.
This also updates libnonunix.cc, but I haven't been able
to test those changes.
Diffstat (limited to 'crawl-ref/source/libgui.cc')
-rw-r--r-- | crawl-ref/source/libgui.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/libgui.cc b/crawl-ref/source/libgui.cc index 6eb4339076..568faa0d69 100644 --- a/crawl-ref/source/libgui.cc +++ b/crawl-ref/source/libgui.cc @@ -311,9 +311,9 @@ int clrscr() return 0; } -void message_out(int which_line, int colour, const char *s, int firstcol, bool newline) +void message_out(int *which_line, int colour, const char *s, int firstcol) { - tiles.message_out(which_line, colour, s, firstcol, newline); + tiles.message_out(*which_line, colour, s, firstcol); } void cgotoxy(int x, int y, int region) |