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