make building height consistent, at least independent of aspect ratio

This commit is contained in:
Hannes Janetzek
2013-04-02 20:38:23 +02:00
parent b7ca00ae8f
commit bac46ac6e2
5 changed files with 13 additions and 15 deletions

View File

@@ -416,7 +416,7 @@ public class MapViewPosition {
mRotMatrix.multiplyMM(mTmpMatrix, mRotMatrix);
// scale to window coordinates
mTmpMatrix.setScale(1 / mWidth, 1 / mWidth, 1);
mTmpMatrix.setScale(1 / mWidth, 1 / mWidth, 1 / mWidth);
mViewMatrix.multiplyMM(mRotMatrix, mTmpMatrix);