center Emotes

This commit is contained in:
HarukiToreda 2025-04-04 01:21:53 -04:00
parent 2711c53b5f
commit 6e0cca16d1

View File

@ -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;
} }
} }