Skip to content

Commit 2ad5281

Browse files
Update src/graphics/niche/InkHUD/Applets/Bases/Map/MapApplet.cpp
better for clarity Co-authored-by: Copilot <[email protected]>
1 parent 5b9563a commit 2ad5281

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/graphics/niche/InkHUD/Applets/Bases/Map/MapApplet.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,12 @@ void InkHUD::MapApplet::onRender()
2626

2727
// Add white halo outline first
2828
constexpr int outlinePad = 1; // size of white outline padding
29-
int boxSize = (m.hasHopsAway && m.hopsAway > config.lora.hop_limit) || !m.hasHopsAway ? 12 : 10;
29+
int boxSize;
30+
if ((m.hasHopsAway && m.hopsAway > config.lora.hop_limit) || !m.hasHopsAway) {
31+
boxSize = 12;
32+
} else {
33+
boxSize = 10;
34+
}
3035
fillRect(x - (boxSize / 2) - outlinePad, y - (boxSize / 2) - outlinePad, boxSize + (outlinePad * 2),
3136
boxSize + (outlinePad * 2), WHITE);
3237

0 commit comments

Comments
 (0)