From f1f9f6d498a174ee36c88a30fe9dc67d8c4441e0 Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Mon, 5 Aug 2013 20:45:06 +0200 Subject: [PATCH] Introduce measure fps widget --- .../net/osmand/plus/development/OsmandDevelopmentPlugin.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/development/OsmandDevelopmentPlugin.java b/OsmAnd/src/net/osmand/plus/development/OsmandDevelopmentPlugin.java index 1971099072..7451548ad0 100644 --- a/OsmAnd/src/net/osmand/plus/development/OsmandDevelopmentPlugin.java +++ b/OsmAnd/src/net/osmand/plus/development/OsmandDevelopmentPlugin.java @@ -61,12 +61,12 @@ public class OsmandDevelopmentPlugin extends OsmandPlugin { if(!mv.isMeasureFPS()) { mv.setMeasureFPS(true); } - setText(Float.toString(mv.getFPS()), "FPS"); + setText(Integer.toString((int) mv.getFPS()), "FPS"); return true; } }; mapInfoLayer.getMapInfoControls().registerSideWidget(fps, 0, - R.string.map_widget_fps_info, "fps", false, EnumSet.allOf(ApplicationMode.class), + R.string.map_widget_fps_info, "fps", false, EnumSet.noneOf(ApplicationMode.class), EnumSet.noneOf(ApplicationMode.class), 30); mapInfoLayer.recreateControls(); }