소스 검색

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);
}


불러오는 중...
취소
저장