From bdaf320c08c8c0592bfc73000a90965449ffd9b9 Mon Sep 17 00:00:00 2001 From: mrkusypl Date: Thu, 9 Apr 2026 10:17:07 +0200 Subject: [PATCH] Fix the channel number display --- App/ui/inputbox.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/App/ui/inputbox.c b/App/ui/inputbox.c index ee570426..518e884e 100644 --- a/App/ui/inputbox.c +++ b/App/ui/inputbox.c @@ -46,13 +46,14 @@ const char* INPUTBOX_GetAscii() const char* INPUTBOX_GetAsciiAlignRight() { int targetPos = 7; - if (gInputBoxIndex == 1) - memset(inputBoxAscii, '-', sizeof(inputBoxAscii)); - for (int i = 7; i >= 0; i--) { if (gInputBox[i] != 10) { inputBoxAscii[targetPos--] = '0' + gInputBox[i]; } } + + while(targetPos >= 0) + inputBoxAscii[targetPos--] = '-'; + return inputBoxAscii; } \ No newline at end of file