trigger a bogus mouse move event to interrupt glfwWaitEvents()
see https://github.com/glfw/glfw/issues/218
This commit is contained in:
@@ -375,12 +375,12 @@ bool Map::updateTiles() {
|
||||
}
|
||||
|
||||
bool Map::render() {
|
||||
bool changed = false;
|
||||
if (transform.needsAnimation()) {
|
||||
transform.updateAnimations();
|
||||
changed = updateTiles();
|
||||
}
|
||||
|
||||
bool changed = updateTiles();
|
||||
|
||||
painter.clear();
|
||||
|
||||
for (Tile::Ptr& tile : tiles) {
|
||||
@@ -395,14 +395,3 @@ bool Map::render() {
|
||||
|
||||
return changed || transform.needsAnimation();
|
||||
}
|
||||
|
||||
void Map::tileLoaded(Tile::Ptr tile) {
|
||||
// std::cerr << "loaded " << tile->toString() << std::endl;
|
||||
update();
|
||||
}
|
||||
|
||||
void Map::tileFailed(Tile::Ptr tile) {
|
||||
// fprintf(stderr, "[%8zx] tile failed to load %d/%d/%d\n",
|
||||
// std::hash<std::thread::id>()(std::this_thread::get_id()),
|
||||
// tile->z, tile->x, tile->y);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user