From b77da5ad0b5dca5e8eac9a442fd74815ce9672af Mon Sep 17 00:00:00 2001 From: Joel Klinghed Date: Fri, 29 May 2026 15:44:41 +0200 Subject: Fixup: Include green line in dirty area --- src/icecc.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/icecc.cc b/src/icecc.cc index 967488e..91956c6 100644 --- a/src/icecc.cc +++ b/src/icecc.cc @@ -232,9 +232,9 @@ private: for (auto const& machine : machines_) { auto const x = pad_x_ + col * (box_width_ + pad_x_); auto const bx = static_cast(x); - auto const by = static_cast(y); + auto const by = static_cast(std::max(0.0, y - 1.0)); auto const bw = static_cast(box_width_ + 1); - auto const bh = static_cast(box_height_c_ + 1); + auto const bh = static_cast(box_height_c_ + 2); if (machine->dirty) { machine->dirty = false; -- cgit v1.3