summaryrefslogtreecommitdiff
path: root/src/map/map.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/map.cpp')
-rw-r--r--src/map/map.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/map/map.cpp b/src/map/map.cpp
index de7a7032dc..00f0ac91cc 100644
--- a/src/map/map.cpp
+++ b/src/map/map.cpp
@@ -153,6 +153,12 @@ void Map::cleanup(uv_async_t *async) {
map->painter.cleanup();
}
+void Map::terminate() {
+ view.make_active();
+ painter.terminate();
+ view.make_inactive();
+}
+
void Map::render(uv_async_t *async) {
Map *map = static_cast<Map *>(async->data);