diff options
author | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2006-12-17 14:30:45 +0000 |
---|---|---|
committer | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2006-12-17 14:30:45 +0000 |
commit | 7ecc914a00b10b46579a54feaf9ea72dea8856be (patch) | |
tree | 7d4facea90a5b5854afff3bd4848a36fa93798bd /crawl-ref/source/view.cc | |
parent | 3924236bc9cec9165686f17e8854e4899bd64019 (diff) | |
download | crawl-ref-7ecc914a00b10b46579a54feaf9ea72dea8856be.tar.gz crawl-ref-7ecc914a00b10b46579a54feaf9ea72dea8856be.zip |
Cursor fixes for 0.1.6.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup-0.1.6@663 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/view.cc')
-rw-r--r-- | crawl-ref/source/view.cc | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/crawl-ref/source/view.cc b/crawl-ref/source/view.cc index 136f8c1f5f..49a76a9580 100644 --- a/crawl-ref/source/view.cc +++ b/crawl-ref/source/view.cc @@ -1939,7 +1939,7 @@ static void draw_level_map( screen_buffer_t buffer2[GYM * GXM * 2]; const int num_lines = get_number_of_lines(); - _setcursortype(_NOCURSOR); + cursor_control cs(false); #ifdef PLAIN_TERM gotoxy(1, 1); @@ -2027,8 +2027,6 @@ static void draw_level_map( #ifdef DOS_TERM puttext(1, 1, 80, 25, buffer2); #endif - - _setcursortype(_NORMALCURSOR); } // show_map() now centers the known map along x or y. This prevents @@ -3441,7 +3439,7 @@ void viewwindow(bool draw_it, bool do_updates) if (draw_it) { - _setcursortype(_NOCURSOR); + cursor_control cs(false); const bool map = player_in_mappable_area(); int bufcount = 0; @@ -3632,6 +3630,5 @@ void viewwindow(bool draw_it, bool do_updates) #endif #endif - _setcursortype(_NORMALCURSOR); } } // end viewwindow() |