diff --git a/common/map_view.cpp b/common/map_view.cpp index 478122fa5..de31c1fa0 100644 --- a/common/map_view.cpp +++ b/common/map_view.cpp @@ -128,6 +128,7 @@ public: glfwGetFramebufferSize(window, &fb_width, &fb_height); mapView->map.resize(width, height, (float)fb_width / (float)width, fb_width, fb_height); + mapView->map.update(); } static void mouseclick(GLFWwindow *window, int button, int action, int modifiers) { diff --git a/include/llmr/map/map.hpp b/include/llmr/map/map.hpp index 4c24fa90d..640786e10 100644 --- a/include/llmr/map/map.hpp +++ b/include/llmr/map/map.hpp @@ -31,6 +31,7 @@ public: void toggleRaster(); /* callback */ + void update(); bool render(); void cancelAnimations(); @@ -71,7 +72,6 @@ private: TileData::State addTile(const Tile::ID& id); TileData::State hasTile(const Tile::ID& id); - void update(); private: Settings& settings;