Remove use of std::transform(), use SDL_toupper/lower

There's no need to use a template here. Just manually call SDL_tolower()
or SDL_toupper() as needed.

Oh yeah, and use SDL_tolower() and SDL_toupper() instead of libc
tolower() and toupper().
This commit is contained in:
Misa
2020-07-03 14:54:23 -07:00
committed by Ethan Lee
parent 36e38027d8
commit 5fb0b4396a
4 changed files with 32 additions and 8 deletions

View File

@@ -6786,7 +6786,10 @@ void Game::createmenu( enum Menu::MenuName t, bool samemenu/*= false*/ )
{
text = " " + ed.ListOfMetaData[i].title;
}
std::transform(text.begin(), text.end(), text.begin(), ::tolower);
for (size_t ii = 0; ii < text.length(); ii++)
{
text[ii] = SDL_tolower(text[ii]);
}
option(text);
}
}