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 authored and patrickelectric committed Sep 28, 2023
1 parent 86efab8 commit bab59a3
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 bab59a3

Please sign in to comment.