Format full text speed string

This commit is contained in:
jeffman 2019-08-05 21:52:08 -04:00
parent 58a112c5c4
commit ab2461adb3
1 changed files with 2 additions and 2 deletions

View File

@ -174,14 +174,14 @@ void format_file_string(FILE_SELECT *file)
for (int i = 0; i < (sizeof(textSpeedStr) - 1); i++)
file->formatted_str[index++] = encode_ascii(textSpeedStr[i]);
char speedStrs[][6] = {
char speedStrs[][7] = {
"Fast",
"Medium",
"Slow"
};
char *speedStr = speedStrs[file->text_speed];
for (int i = 0; i < 1; i++) // note: only print one letter for now, until we expand the window size
for (int i = 0; i < ascii_strlen(speedStr); i++)
file->formatted_str[index++] = encode_ascii(speedStr[i]);
file->formatted_str[index++] = 0xFF;