From 6038075e9e799f95e2ac6e40ff89bbc134bb58f6 Mon Sep 17 00:00:00 2001 From: Commander1024 Date: Thu, 28 May 2026 13:29:39 +0200 Subject: [PATCH] Fixed off-by-one error in rendering of the 7-segment segments. --- esphome/owon-b35t-m5stack-core2.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/esphome/owon-b35t-m5stack-core2.h b/esphome/owon-b35t-m5stack-core2.h index 647d5e4..3dd7ae5 100644 --- a/esphome/owon-b35t-m5stack-core2.h +++ b/esphome/owon-b35t-m5stack-core2.h @@ -574,12 +574,12 @@ class Meter { void draw_segment_(Display &it, int x, int y, int w, int h, bool horizontal, Color color) { if (horizontal) { int cap = h / 2; - it.filled_rectangle(x + cap, y, w - 2 * cap, h, color); + it.filled_rectangle(x + cap, y, w - 2 * cap, h +1, color); it.filled_triangle(x, y + cap, x + cap, y, x + cap, y + h, color); it.filled_triangle(x + w, y + cap, x + w - cap, y, x + w - cap, y + h, color); } else { int cap = w / 2; - it.filled_rectangle(x, y + cap, w, h - 2 * cap, color); + it.filled_rectangle(x, y + cap, w +1, h - 2 * cap, color); it.filled_triangle(x + cap, y, x, y + cap, x + w, y + cap, color); it.filled_triangle(x + cap, y + h, x, y + h - cap, x + w, y + h - cap, color); }