Skip to content

Commit

Permalink
CompassHUD: use one digit after the decimal place
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaellehmkuhl committed Sep 28, 2023
1 parent 78f1fa5 commit 047baeb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/widgets/CompassHUD.vue
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ const renderCanvas = (): void => {
if (!widget.value.options.useNegativeRange) {
finalAngle = finalAngle < 0 ? finalAngle + 360 : finalAngle
}
ctx.fillText(`${finalAngle.toFixed(2)}°`, halfCanvasWidth, refFontSize)
ctx.fillText(`${finalAngle.toFixed(1)}°`, halfCanvasWidth, refFontSize)
}
// Draw reference triangle
Expand Down

0 comments on commit 047baeb

Please sign in to comment.