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

better for clarity

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
HarukiToreda 2025-10-19 15:12:03 -04:00 committed by GitHub
parent 5b9563a357
commit 2ad52812c0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -26,7 +26,12 @@ void InkHUD::MapApplet::onRender()
// Add white halo outline first
constexpr int outlinePad = 1; // size of white outline padding
int boxSize = (m.hasHopsAway && m.hopsAway > config.lora.hop_limit) || !m.hasHopsAway ? 12 : 10;
int boxSize;
if ((m.hasHopsAway && m.hopsAway > config.lora.hop_limit) || !m.hasHopsAway) {
boxSize = 12;
} else {
boxSize = 10;
}
fillRect(x - (boxSize / 2) - outlinePad, y - (boxSize / 2) - outlinePad, boxSize + (outlinePad * 2),
boxSize + (outlinePad * 2), WHITE);