mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 17:38:16 +03:00
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:
@@ -3236,7 +3236,10 @@ void editorrender()
|
||||
if(ed.hookmenupage+i==ed.hookmenu)
|
||||
{
|
||||
std::string tstring="> " + ed.hooklist[(ed.hooklist.size()-1)-(ed.hookmenupage+i)] + " <";
|
||||
std::transform(tstring.begin(), tstring.end(),tstring.begin(), ::toupper);
|
||||
for (size_t ii = 0; ii < tstring.length(); ii++)
|
||||
{
|
||||
tstring[ii] = SDL_toupper(tstring[ii]);
|
||||
}
|
||||
graphics.Print(16,68+(i*16),tstring,123, 111, 218, true);
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user