diff options
Diffstat (limited to 'crawl-ref/source/tilesdl.cc')
-rw-r--r-- | crawl-ref/source/tilesdl.cc | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/crawl-ref/source/tilesdl.cc b/crawl-ref/source/tilesdl.cc index 51ed39ea10..de5782ff75 100644 --- a/crawl-ref/source/tilesdl.cc +++ b/crawl-ref/source/tilesdl.cc @@ -1207,19 +1207,22 @@ void TilesFramework::clrscr() cgotoxy(1,1); } -void TilesFramework::message_out(int which_line, int colour, const char *s, - int firstcol, bool newline) +void TilesFramework::message_out(int *which_line, int colour, const char *s, + int firstcol) { if (!firstcol) firstcol = Options.delay_message_clear ? 2 : 1; + while (*which_line > crawl_view.msgsz.y - 1) + { + m_region_msg->scroll(); + (*which_line)--; + } + cgotoxy(firstcol, which_line + 1, GOTO_MSG); textcolor(colour); cprintf("%s", s); - - if (newline && which_line == crawl_view.msgsz.y - 1) - m_region_msg->scroll(); } void TilesFramework::clear_message_window() |