diff options
author | Robert Vollmert <rvollmert@gmx.net> | 2009-11-28 15:06:46 +0100 |
---|---|---|
committer | Robert Vollmert <rvollmert@gmx.net> | 2009-11-28 18:18:15 +0100 |
commit | 6e1cc1abcff78fb383e25641b0b424bfb1d2ebb4 (patch) | |
tree | 87c7d71c9d0487c5e67ca9dff733675fd7f1c2f3 /crawl-ref/source/view.cc | |
parent | a7280a4d1b2470ff6f78f82b5afb2d3b6dfccd09 (diff) | |
download | crawl-ref-6e1cc1abcff78fb383e25641b0b424bfb1d2ebb4.tar.gz crawl-ref-6e1cc1abcff78fb383e25641b0b424bfb1d2ebb4.zip |
Add an option to draw the player cursor manually.
Set use_fake_player_cursor = true to use this. This allows
defaulting the cursor to off, which means less cursor blinking
say when travelling.
This patch also moves the cursor control closer to where it's
used, so that the cursor is only turned on for actual input
prompts. I've definitely missed some prompts here: almost
anything that prompts for a single character and reads it
using getch() will not have a cursor with use_fake_player_cursor
set at the moment.
Diffstat (limited to 'crawl-ref/source/view.cc')
-rw-r--r-- | crawl-ref/source/view.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/view.cc b/crawl-ref/source/view.cc index f22623bc4c..ef6cb52244 100644 --- a/crawl-ref/source/view.cc +++ b/crawl-ref/source/view.cc @@ -800,6 +800,8 @@ static void draw_player(screen_buffer_t* buffy, else buffy[1] = CYAN; } + if (Options.use_fake_player_cursor) + buffy[1] |= COLFLAG_REVERSE; #else buffy[0] = env.tile_fg(ep) = tileidx_player(you.char_class); buffy[1] = env.tile_bg(ep); @@ -951,7 +953,6 @@ void viewwindow(bool monster_updates, bool show_updates) crawl_view.viewp.x + crawl_view.viewsz.x - 1, crawl_view.viewp.y + crawl_view.viewsz.y - 1, buffy); - update_monster_pane(); #else tiles.set_need_redraw(); |