diff options
Diffstat (limited to 'src/map/map.cpp')
-rw-r--r-- | src/map/map.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/map/map.cpp b/src/map/map.cpp index 1399b97ee2..6da514d163 100644 --- a/src/map/map.cpp +++ b/src/map/map.cpp @@ -114,6 +114,8 @@ void Map::run() { prepare(); render(); } + + view.make_inactive(); } void Map::rerender() { @@ -151,6 +153,11 @@ void Map::cleanup(uv_async_t *async, int status) { map->painter.cleanup(); } +void Map::terminate() { + view.make_active(); + painter.terminate(); +} + void Map::render(uv_async_t *async, int status) { Map *map = static_cast<Map *>(async->data); |