浏览代码

Fix altitude lines ignoring vertical camera movement

master
Fen Dweller 5 年前
父节点
当前提交
3e7bd913eb
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      macrovision.js

+ 1
- 1
macrovision.js 查看文件

@@ -502,7 +502,7 @@ function drawVerticalScale(ifDirty = false) {

function drawAltitudeLine(ctx, height, label) {
const pixelScale = (ctx.canvas.clientHeight - 100) / config.height.toNumber();
const y = ctx.canvas.clientHeight - 50 - height.toNumber("meters") * pixelScale;
const y = ctx.canvas.clientHeight - 50 - (height.toNumber("meters") - config.y) * pixelScale;
if (y < ctx.canvas.clientHeight - 100) {
drawTick(ctx, 50, y, label, true);
}


正在加载...
取消
保存