From a26fddfea332695e47978d36c3bcd6fb27127086 Mon Sep 17 00:00:00 2001 From: Kevin Granade Date: Fri, 18 Mar 2016 23:18:21 +0000 Subject: [PATCH] Rearange main rendering method to place curses cursor on @ at the end. --- src/game.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/game.cpp b/src/game.cpp index a67cb842730c1..fd44e7c0775dd 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -5053,11 +5053,11 @@ void game::draw() { // Draw map werase(w_terrain); + draw_sidebar(); draw_ter(); if( !is_draw_tiles_mode() ) { wrefresh(w_terrain); } - draw_sidebar(); #ifdef TILES try_sdl_update(); #endif // TILES @@ -5321,11 +5321,15 @@ void game::draw_ter( const tripoint ¢er, const bool looking, const bool draw ctxt.get_desc("QUIT").c_str() ); popup(message, PF_NO_WAIT_ON_TOP); } - wrefresh(w_terrain); if( u.has_effect( effect_visuals ) || u.get_effect_int( effect_hot, bp_head ) > 1 ) { hallucinate( center ); } + // Place the cursor over the player as is expected by screen readers. + wmove( w_terrain, POSY + g->u.pos().y - center.y, POSX + g->u.pos().x - center.x ); + + wrefresh(w_terrain); + } tripoint game::get_veh_dir_indicator_location() const