summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJoel Klinghed <the_jk@opera.com>2026-05-29 15:44:41 +0200
committerJoel Klinghed <the_jk@opera.com>2026-05-29 15:44:41 +0200
commitb77da5ad0b5dca5e8eac9a442fd74815ce9672af (patch)
treeb3e9dbd14b2191fd0d96ae8e6d168cfc04d73e98 /src
parent7efff8c560aa0c4a834201da48f53e709519c14b (diff)
Fixup: Include green line in dirty areaHEADmaster
Diffstat (limited to 'src')
-rw-r--r--src/icecc.cc4
1 files changed, 2 insertions, 2 deletions
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<int16_t>(x);
- auto const by = static_cast<int16_t>(y);
+ auto const by = static_cast<int16_t>(std::max(0.0, y - 1.0));
auto const bw = static_cast<uint16_t>(box_width_ + 1);
- auto const bh = static_cast<uint16_t>(box_height_c_ + 1);
+ auto const bh = static_cast<uint16_t>(box_height_c_ + 2);
if (machine->dirty) {
machine->dirty = false;