From 86746aaaf094ece1540d143c8d58c8f9e551e243 Mon Sep 17 00:00:00 2001 From: Charles Dang Date: Sat, 27 Feb 2016 11:56:45 +1100 Subject: [PATCH] editor: don't redraw entire screen when switching contexts --- src/editor/map/context_manager.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/editor/map/context_manager.cpp b/src/editor/map/context_manager.cpp index bd345a92611..7f6af284d62 100644 --- a/src/editor/map/context_manager.cpp +++ b/src/editor/map/context_manager.cpp @@ -174,7 +174,8 @@ void context_manager::refresh_all() { gui_.rebuild_all(); get_map_context().set_needs_terrain_rebuild(false); - gui_.redraw_everything(); + gui_.invalidate_all(); + gui_.draw(false); get_map_context().clear_changed_locations(); gui_.recalculate_minimap(); }