From 1f0820c8e82810fb957cb1cd17fb4327debfc0e5 Mon Sep 17 00:00:00 2001 From: Bruno de Oliveira Abinader Date: Thu, 26 Nov 2015 22:38:14 +0200 Subject: [core] Added MapDebugOptions Map debug options are now cycled up to all debug options enabled, then back to none. --- linux/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'linux') diff --git a/linux/main.cpp b/linux/main.cpp index 97f400dd41..4ccf7f3529 100644 --- a/linux/main.cpp +++ b/linux/main.cpp @@ -132,7 +132,7 @@ int main(int argc, char *argv[]) { map.setLatLngZoom(mbgl::LatLng(settings.latitude, settings.longitude), settings.zoom); map.setBearing(settings.bearing); map.setPitch(settings.pitch); - map.setDebug(settings.debug); + map.setDebug(mbgl::MapDebugOptions(settings.debug)); } view->setChangeStyleCallback([&map] () { @@ -167,7 +167,7 @@ int main(int argc, char *argv[]) { settings.zoom = map.getZoom(); settings.bearing = map.getBearing(); settings.pitch = map.getPitch(); - settings.debug = map.getDebug(); + settings.debug = mbgl::EnumType(map.getDebug()); if (!skipConfig) { settings.save(); } -- cgit v1.2.1