mirror of
https://github.com/meshtastic/firmware.git
synced 2025-08-09 15:14:45 +00:00
Navigation bar should no longer hide on Eink displays
This commit is contained in:
parent
351dff14e8
commit
9d9fb2d74c
@ -3352,11 +3352,15 @@ void drawCustomFrameIcons(OLEDDisplay *display, OLEDDisplayUiState *state)
|
|||||||
const int totalWidth = totalIcons * iconSize + (totalIcons - 1) * spacing;
|
const int totalWidth = totalIcons * iconSize + (totalIcons - 1) * spacing;
|
||||||
const int xStart = (SCREEN_WIDTH - totalWidth) / 2;
|
const int xStart = (SCREEN_WIDTH - totalWidth) / 2;
|
||||||
|
|
||||||
// Only show bar briefly after switching frames
|
// Only show bar briefly after switching frames (unless on E-Ink)
|
||||||
|
#if defined(USE_EINK)
|
||||||
|
int y = SCREEN_HEIGHT - iconSize - 1;
|
||||||
|
#else
|
||||||
int y = SCREEN_HEIGHT - iconSize - 1;
|
int y = SCREEN_HEIGHT - iconSize - 1;
|
||||||
if (millis() - lastFrameChangeTime > ICON_DISPLAY_DURATION_MS) {
|
if (millis() - lastFrameChangeTime > ICON_DISPLAY_DURATION_MS) {
|
||||||
y = SCREEN_HEIGHT;
|
y = SCREEN_HEIGHT;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
// Pre-calculate bounding rect
|
// Pre-calculate bounding rect
|
||||||
const int rectX = xStart - 2 - bigOffset;
|
const int rectX = xStart - 2 - bigOffset;
|
||||||
|
Loading…
Reference in New Issue
Block a user