update map position animation at beginning of each frame

This commit is contained in:
Hannes Janetzek
2013-10-09 01:56:05 +02:00
parent 6cfc776911
commit 0a2bb1026e
2 changed files with 61 additions and 137 deletions
+2 -2
View File
@@ -253,13 +253,13 @@ public class GLRenderer implements GLSurfaceView.Renderer {
boolean changed = false;
// get current MapPosition, set mBoxCoords (mapping of screen to model
// coordinates)
MapPosition pos = mMapPosition;
synchronized (mMapViewPosition) {
// update MapPosition
mMapViewPosition.updateAnimation();
// get current MapPosition
changed = mMapViewPosition.getMapPosition(pos);
if (changed)