Resize view from map thread

This commit is contained in:
John Firebaugh
2015-04-23 11:11:12 -07:00
parent a625ba8a09
commit 230027e514
11 changed files with 23 additions and 16 deletions

View File

@@ -85,6 +85,11 @@ void MapContext::pause() {
view.activate();
}
void MapContext::resize(uint16_t width, uint16_t height, float ratio) {
view.resize(width, height, ratio);
triggerUpdate();
}
void MapContext::triggerUpdate(const Update u) {
updated |= static_cast<UpdateType>(u);
asyncUpdate->send();