pace: fix off-by-one in GPS `fillRect`

master
Rob Pilling 2025-06-04 21:10:03 +01:00
parent 82b41a0f20
commit 1d0f21b248
1 changed files with 2 additions and 2 deletions

View File

@ -48,8 +48,8 @@ const drawGpsLvl = (l: Layout.RenderedHierarchy) => {
g.fillRect( g.fillRect(
l.x, l.x,
l.y + l.h - 10 - (l.h - 10) * ((nsats > 12 ? 12 : nsats) / 12), l.y + l.h - 10 - (l.h - 10) * ((nsats > 12 ? 12 : nsats) / 12),
l.x + l.w, l.x + l.w - 1,
l.y + l.h l.y + l.h - 1
); );
}; };