summaryrefslogtreecommitdiff
path: root/macosx
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2015-11-17 13:27:42 +0100
committerKonstantin Käfer <mail@kkaefer.com>2015-11-17 19:02:12 +0100
commit85ab48636c0f0cb5b1ec5c5b6b64a41dbd188e06 (patch)
tree2e3b539ae1ebb5e5ffcd18b4de6642f0601206e5 /macosx
parent728847329c09daa7e6754f4a6445a73be82ed616 (diff)
downloadqtlocation-mapboxgl-85ab48636c0f0cb5b1ec5c5b6b64a41dbd188e06.tar.gz
[core] allow changing pitch in GLFW based apps
Diffstat (limited to 'macosx')
-rw-r--r--macosx/main.mm2
1 files changed, 2 insertions, 0 deletions
diff --git a/macosx/main.mm b/macosx/main.mm
index fceec13116..264924edcf 100644
--- a/macosx/main.mm
+++ b/macosx/main.mm
@@ -167,6 +167,7 @@ int main(int argc, char* argv[]) {
mbgl::Settings_NSUserDefaults settings;
map.setLatLngZoom(mbgl::LatLng(settings.latitude, settings.longitude), settings.zoom);
map.setBearing(settings.bearing);
+ map.setPitch(settings.pitch);
map.setDebug(settings.debug);
view.setChangeStyleCallback([&map, &view] () {
@@ -203,6 +204,7 @@ int main(int argc, char* argv[]) {
settings.longitude = latLng.longitude;
settings.zoom = map.getZoom();
settings.bearing = map.getBearing();
+ settings.pitch = map.getPitch();
settings.debug = map.getDebug();
settings.save();