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.h | |
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.h')
-rw-r--r-- | crawl-ref/source/libgui.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/libgui.h b/crawl-ref/source/libgui.h index 9932520a83..d738075d7e 100644 --- a/crawl-ref/source/libgui.h +++ b/crawl-ref/source/libgui.h @@ -57,7 +57,7 @@ int window(int x1, int y1, int x2, int y2); extern "C" int getch(); int getch_ck(); int clrscr(); -void message_out(int which_line, int colour, const char *s, int firstcol = 0, bool newline = true); +void message_out(int *which_line, int colour, const char *s, int firstcol = 0); void cgotoxy(int x, int y, int region = GOTO_CRT); void clear_message_window(); void delay(int ms); |