s/formated/formatted

This commit is contained in:
jsalmon3 2004-10-17 02:03:01 +00:00
parent d195faf719
commit 35c7455ab5

View file

@ -195,7 +195,7 @@ int VideoTextLength(unsigned font, const unsigned char* text)
isformat = 0;
for (width = 0, s = text; *s; ++s) {
if (*s == '~') {
if (!*++s) { // bad formated string
if (!*++s) { // bad formatted string
break;
}
if (*s == '<' || *s == '>') {
@ -296,7 +296,7 @@ static int DoDrawText(int x, int y, unsigned font, const unsigned char* text,
for (rev = NULL, widths = 0; *text; ++text) {
if (*text == '~') {
switch (*++text) {
case '\0': // wrong formated string.
case '\0': // wrong formatted string.
DebugPrint("oops, format your ~\n");
return widths;
case '~':