summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/libdos.h
diff options
context:
space:
mode:
authorRobert Vollmert <rvollmert@gmx.net>2009-11-26 17:16:08 +0100
committerRobert Vollmert <rvollmert@gmx.net>2009-11-26 17:16:08 +0100
commit9ff367c1410daee974c2a9619485c7d41d2ac6f8 (patch)
tree8d1f45ae736cd2ba40eebed6184d79d71478114e /crawl-ref/source/libdos.h
parentef78118cbd7e21e5d33bfcab515ada5f6dd0d538 (diff)
downloadcrawl-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/libdos.h')
-rw-r--r--crawl-ref/source/libdos.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/crawl-ref/source/libdos.h b/crawl-ref/source/libdos.h
index 6691d499d9..99f326e6de 100644
--- a/crawl-ref/source/libdos.h
+++ b/crawl-ref/source/libdos.h
@@ -28,8 +28,7 @@ void clear_to_end_of_line();
int getch_ck();
static inline void set_mouse_enabled(bool enabled) { }
-void message_out(int mline, int colour, const char *str, int firstcol = 0,
- bool newline = true);
+void message_out(int *mline, int colour, const char *str, int firstcol = 0);
void clear_message_window();
inline void update_screen()
{