diff --git a/program/MapWindow.cs b/program/MapWindow.cs index 6103b01..f28a876 100644 --- a/program/MapWindow.cs +++ b/program/MapWindow.cs @@ -940,22 +940,32 @@ private void DrawCursor(Cairo.Context cr, double x, double y) { - const double size = 14; + const double arm = 14; // same as the old marker + const double ring = 5; - cr.NewPath(); - cr.SetSourceRGBA(1.0, 0.85, 0.0, 0.95); //yellow - cr.LineWidth = 2.5; - cr.MoveTo(x - size, y); - cr.LineTo(x + size, y); - cr.MoveTo(x, y - size); - cr.LineTo(x, y + size); + cr.LineCap = Cairo.LineCap.Round; + + System.Action path = () => + { + cr.NewPath(); + cr.MoveTo(x - arm, y); cr.LineTo(x + arm, y); + cr.MoveTo(x, y - arm); cr.LineTo(x, y + arm); + cr.NewSubPath(); + cr.Arc(x, y, ring, 0, 2 * Math.PI); + }; + + // 1) black outline + path(); + cr.SetSourceRGBA(0, 0, 0, 0.9); + cr.LineWidth = 5; cr.Stroke(); - cr.NewPath(); - cr.Arc(x, y, 5, 0, 2 * Math.PI); + // 2) orange on top (#FF7A00), same width as the old marker + path(); + cr.SetSourceRGBA(1.0, 0.478, 0.0, 1.0); + cr.LineWidth = 2.5; cr.Stroke(); } - private void DrawCoordHud(Cairo.Context cr, int w, int h) { string text = string.Format(CultureInfo.InvariantCulture,