s/formated/formatted
This commit is contained in:
parent
d195faf719
commit
35c7455ab5
1 changed files with 2 additions and 2 deletions
|
@ -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 '~':
|
||||
|
|
Loading…
Add table
Reference in a new issue