mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-11-02 17:19:37 +00:00
Minor changes to display message for wind.
This commit is contained in:
1 parent
5067d5567a
commit
5b410c9d5a
2 files changed
+4
-4
No files matched your search
+2
-2
@@ -45,9 +45,9 @@ public abstract class FullCanvasOverlay extends CanvasOverlay {
|
||||
/*
|
||||
* Reset the canvas only if the pixel coordinates need to be recomputed
|
||||
*/
|
||||
if (force) {
|
||||
//if (force) {
|
||||
setCanvasSettings();
|
||||
}
|
||||
//}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
+2
-2
@@ -55,11 +55,11 @@ public class PathCanvasOverlay extends WindFieldCanvasOverlay {
|
||||
}
|
||||
|
||||
if (displayWindAlongPath) {
|
||||
int width = (int) Math.min(2, Math.round(windDTO.trueWindSpeedInMetersPerSecond));
|
||||
int width = (int) Math.max(1, Math.min(2, Math.round(windDTO.trueWindSpeedInMetersPerSecond)));
|
||||
DegreeBearingImpl dbi = new DegreeBearingImpl(windDTO.trueWindBearingDeg);
|
||||
drawArrow(windDTO, dbi.getRadians(), length, width, ++index);
|
||||
if (windDTONext != null) {
|
||||
width = (int) Math.min(2, Math.round(windDTO.trueWindSpeedInMetersPerSecond));
|
||||
width = (int) Math.max(1, Math.min(2, Math.round(windDTO.trueWindSpeedInMetersPerSecond)));
|
||||
dbi = new DegreeBearingImpl(windDTO.trueWindBearingDeg);
|
||||
drawArrow(windDTONext, dbi.getRadians(), length, width, ++index);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user