Replace truncation in file selection with central function.

This commit is contained in:
Jonas Diemer
2025-12-30 18:07:48 +01:00
parent a3a3954062
commit 9f8ef317fe
2 changed files with 3 additions and 7 deletions

View File

@@ -75,7 +75,8 @@ class GfxRenderer {
int getSpaceWidth(int fontId) const;
int getFontAscenderSize(int fontId) const;
int getLineHeight(int fontId) const;
std::string truncatedText(const int fontId, const char* text, const int maxWidth, const EpdFontStyle style) const;
std::string truncatedText(const int fontId, const char* text, const int maxWidth,
const EpdFontStyle style = REGULAR) const;
// UI Components
void drawButtonHints(int fontId, const char* btn1, const char* btn2, const char* btn3, const char* btn4) const;