mirror of
https://github.com/meshtastic/firmware.git
synced 2025-10-29 07:36:46 +00:00
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:
parent
5b9563a357
commit
2ad52812c0
@ -26,7 +26,12 @@ void InkHUD::MapApplet::onRender()
|
|||||||
|
|
||||||
// Add white halo outline first
|
// Add white halo outline first
|
||||||
constexpr int outlinePad = 1; // size of white outline padding
|
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),
|
fillRect(x - (boxSize / 2) - outlinePad, y - (boxSize / 2) - outlinePad, boxSize + (outlinePad * 2),
|
||||||
boxSize + (outlinePad * 2), WHITE);
|
boxSize + (outlinePad * 2), WHITE);
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user