diff options
author | Robert Vollmert <rvollmert@gmx.net> | 2009-11-29 20:15:44 +0100 |
---|---|---|
committer | Robert Vollmert <rvollmert@gmx.net> | 2009-11-29 21:00:20 +0100 |
commit | 5572f37c06b272a4b3e18ec8adb19c74d44c2b4c (patch) | |
tree | 36746990bdd50606086c913a7ad9963ca405c429 | |
parent | 60f777a427dceb49a73a583b334e1324438a39cc (diff) | |
download | crawl-ref-5572f37c06b272a4b3e18ec8adb19c74d44c2b4c.tar.gz crawl-ref-5572f37c06b272a4b3e18ec8adb19c74d44c2b4c.zip |
Default libunix curses scrolling to off.
There may have been some obscure reason for turning this on, but
as far as I can tell it only causes problems.
-rw-r--r-- | crawl-ref/source/libunix.cc | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/crawl-ref/source/libunix.cc b/crawl-ref/source/libunix.cc index 11b7419c85..c918473e00 100644 --- a/crawl-ref/source/libunix.cc +++ b/crawl-ref/source/libunix.cc @@ -580,7 +580,7 @@ void unixcurses_startup( void ) start_color(); setup_colour_pairs(); - scrollok(stdscr, TRUE); + scrollok(stdscr, FALSE); crawl_view.init_geometry(); setup_message_window(); @@ -779,11 +779,6 @@ void put_colour_ch(int colour, unsigned ch) void puttext(int x1, int y1, int x2, int y2, const screen_buffer_t *buf) { - const bool will_scroll = (x2 == get_number_of_cols()); - - if (will_scroll) - scrollok(stdscr, FALSE); - for (int y = y1; y <= y2; ++y) { cgotoxy(x1, y); @@ -794,9 +789,6 @@ void puttext(int x1, int y1, int x2, int y2, const screen_buffer_t *buf) } } update_screen(); - - if (will_scroll) - scrollok(stdscr, TRUE); } // These next four are front functions so that we can reduce |