mirror of
https://github.com/meshtastic/firmware.git
synced 2025-06-09 06:32:06 +00:00
center Emotes
This commit is contained in:
parent
2711c53b5f
commit
6e0cca16d1
@ -1092,7 +1092,10 @@ void drawTextMessageFrame(OLEDDisplay *display, OLEDDisplayUiState *state, int16
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Then draw emoji below header
|
// Then draw emoji below header
|
||||||
display->drawXbm((screenWidth - e.width) / 2, (screenHeight - e.height) / 2 + FONT_HEIGHT_SMALL, e.width, e.height, e.bitmap);
|
int remainingHeight = screenHeight - FONT_HEIGHT_SMALL - navHeight;
|
||||||
|
int emoteY = FONT_HEIGHT_SMALL + (remainingHeight - e.height) / 2;
|
||||||
|
|
||||||
|
display->drawXbm((screenWidth - e.width) / 2, emoteY, e.width, e.height, e.bitmap);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user