cosmetics
This commit is contained in:
parent
0d950b7147
commit
ba9564d53e
1 changed files with 3 additions and 2 deletions
|
@ -43,8 +43,9 @@ public class ElevationView extends ImageView {
|
|||
final int stepBase = useFeet ? 200 : 100;
|
||||
final float convEle = useFeet ? 3.28084f : 1.0f;
|
||||
|
||||
final int maxBase = ((int)(maxElevation * convEle / stepBase) + 1) * stepBase, minBase = (int)(minElevation * convEle / stepBase) * stepBase;
|
||||
final float yDistance = (maxBase - minBase);
|
||||
final int maxBase = ((int)(maxElevation * convEle / stepBase) + 1) * stepBase;
|
||||
final int minBase = (int)(minElevation * convEle / stepBase) * stepBase;
|
||||
final float yDistance = maxBase - minBase;
|
||||
final float xPer = (float)canvas.getWidth() / xDistance;
|
||||
final float yPer = (float)canvas.getHeight() / yDistance;
|
||||
final float canvasRight = (float)canvas.getWidth() - 1f;
|
||||
|
|
Loading…
Reference in a new issue