diff options
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() |