make sure we trigger an update after resizing

This commit is contained in:
Konstantin Käfer
2014-04-15 10:44:11 -04:00
parent c2f1f0c0df
commit ab66ab39e6
2 changed files with 2 additions and 1 deletions

View File

@@ -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) {

View File

@@ -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;