From 723359378212778bf3e45cabf5bd2504a40c177b Mon Sep 17 00:00:00 2001 From: Mark Schreiber Date: Thu, 19 Dec 2019 00:46:57 -0800 Subject: [PATCH] Clear screen after world/options menu close Large world/options menus can extend outside of the "normal" main menu area. When they do so and are closed, the area that they had been covering up is not cleared. Clear it. --- src/options.cpp | 1 + src/worldfactory.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/src/options.cpp b/src/options.cpp index b5e6f20971bb1..f135859075b16 100644 --- a/src/options.cpp +++ b/src/options.cpp @@ -2691,6 +2691,7 @@ std::string options_manager::show( bool ingame, const bool world_options_only ) // keybinding screen erased the internal borders of main menu, restore it: draw_borders_internal( w_options_header, mapLines ); } else if( action == "QUIT" ) { + catacurses::clear(); catacurses::refresh(); break; } diff --git a/src/worldfactory.cpp b/src/worldfactory.cpp index 6880d44cae343..daee39cc58e39 100644 --- a/src/worldfactory.cpp +++ b/src/worldfactory.cpp @@ -163,6 +163,7 @@ WORLDPTR worldfactory::make_new_world( bool show_prompt, const std::string &worl } } if( curtab < 0 ) { + catacurses::clear(); catacurses::refresh(); return nullptr; }