Skip to content

Commit

Permalink
Clear the screen after exiting from character creation UI (#37915)
Browse files Browse the repository at this point in the history
* Clear the screen after exiting from character creation UI

Also fixed small grahical glitch in skills tab in character creation menu

* Refresh too
  • Loading branch information
Night-Pryanik authored Feb 11, 2020
1 parent 6d26b22 commit 7572e38
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/newcharacter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -467,6 +467,8 @@ bool avatar::create( character_type type, const std::string &tempname )
} while( true );

if( tab < 0 ) {
catacurses::clear();
catacurses::refresh();
return false;
}

Expand Down Expand Up @@ -1631,7 +1633,7 @@ tab_direction set_skills( const catacurses::window &w, avatar &u, points_left &p
// Clear the bottom of the screen.
werase( w_description );
mvwprintz( w, point( remaining_points_length + 9, 3 ), c_light_gray,
std::string( getmaxx( w ) - remaining_points_length - 4, ' ' ) );
std::string( getmaxx( w ) - remaining_points_length - 10, ' ' ) );

// Write the hint as to upgrade costs
const int cost = skill_increment_cost( u, currentSkill->ident() );
Expand Down

0 comments on commit 7572e38

Please sign in to comment.