From 6e0cca16d18ead45b0891a802f9a8a4deefd7230 Mon Sep 17 00:00:00 2001 From: HarukiToreda <116696711+HarukiToreda@users.noreply.github.com> Date: Fri, 4 Apr 2025 01:21:53 -0400 Subject: [PATCH] center Emotes --- src/graphics/Screen.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/graphics/Screen.cpp b/src/graphics/Screen.cpp index 4e46d9a9f..6f0b5a5fb 100644 --- a/src/graphics/Screen.cpp +++ b/src/graphics/Screen.cpp @@ -1092,7 +1092,10 @@ void drawTextMessageFrame(OLEDDisplay *display, OLEDDisplayUiState *state, int16 } // 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; } }