From ab66ab39e6c46406f45e4898cc72359deb74583b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Konstantin=20Ka=CC=88fer?= Date: Tue, 15 Apr 2014 10:44:11 -0400 Subject: [PATCH] make sure we trigger an update after resizing --- common/map_view.cpp | 1 + include/llmr/map/map.hpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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;