From 4c0caad62a8a6ab762672b29e4b945799320583e Mon Sep 17 00:00:00 2001 From: David Brown Date: Mon, 23 Dec 2019 15:38:15 +0000 Subject: [PATCH] refresh windows --- src/options.cpp | 1 + src/worldfactory.cpp | 4 ++++ 2 files changed, 5 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..1b43684991eae 100644 --- a/src/worldfactory.cpp +++ b/src/worldfactory.cpp @@ -486,6 +486,7 @@ WORLDPTR worldfactory::pick_world( bool show_prompt ) const std::string action = ctxt.handle_input(); if( action == "QUIT" ) { + catacurses::clear(); catacurses::refresh(); break; } else if( !world_pages[selpage].empty() && action == "DOWN" ) { @@ -757,6 +758,7 @@ void worldfactory::show_active_world_mods( const std::vector &world_mods } } else if( action == "QUIT" || action == "CONFIRM" ) { + catacurses::clear(); catacurses::refresh(); break; } @@ -1164,6 +1166,7 @@ int worldfactory::show_worldgen_tab_confirm( const catacurses::window &win, WORL if( !valid_worldname( world->world_name ) ) { continue; } + catacurses::clear(); catacurses::refresh(); return 1; } @@ -1171,6 +1174,7 @@ int worldfactory::show_worldgen_tab_confirm( const catacurses::window &win, WORL // erase entire window to avoid overlapping of query with possible popup about invalid worldname werase( w_confirmation ); wrefresh( w_confirmation ); + catacurses::clear(); catacurses::refresh(); if( valid_worldname( worldname ) ) {