Fix the channel number display

This commit is contained in:
mrkusypl committed 2026-04-09 10:17:07 +02:00
1 parent 21c215e9fd
commit bdaf320c08
1 file changed
+4 -3
+4 -3
View File
@@ -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;
}