From d36d669ddfd447fbbe28faef18457177bf102881 Mon Sep 17 00:00:00 2001 From: Neil Date: Thu, 17 Apr 2025 11:41:22 +1000 Subject: Tweak SC_MARK_BAR to be slightly wider. --- doc/ScintillaHistory.html | 11 +++++++++++ src/LineMarker.cxx | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/doc/ScintillaHistory.html b/doc/ScintillaHistory.html index 162ab92e5..4d69143ac 100644 --- a/doc/ScintillaHistory.html +++ b/doc/ScintillaHistory.html @@ -593,6 +593,17 @@

Releases

+

+ Release 5.5.7 +

+

Release 5.5.6

diff --git a/src/LineMarker.cxx b/src/LineMarker.cxx index 85d8a7b59..31287883a 100644 --- a/src/LineMarker.cxx +++ b/src/LineMarker.cxx @@ -521,7 +521,7 @@ void LineMarker::Draw(Surface *surface, const PRectangle &rcWhole, const Font *f // Hide cap by continuing a bit. constexpr XYPOSITION continueLength = 5.0; PRectangle rcBar = rcWhole; - const XYPOSITION widthBar = std::floor(rcWhole.Width() / 3.0); + const XYPOSITION widthBar = std::ceil(rcWhole.Width() / 3.0); rcBar.left = centreX - std::floor(widthBar / 2.0); rcBar.right = rcBar.left + widthBar; surface->SetClip(rcWhole); // Hide continued caps -- cgit v1.2.3